Skip to main content

bucket_s3_credentials

Creates, updates, deletes, gets or lists a bucket_s3_credentials resource.

Overview​

Namebucket_s3_credentials
TypeResource
Idrailway.storage.bucket_s3_credentials

Fields​

The following fields are returned by SELECT queries:

One row per BucketS3CompatibleCredentials.

NameDatatypeDescription
access_key_idstring
bucket_namestring
created_atstring (date-time)
endpointstring
regionstring
secret_access_keystring
url_stylestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectbucket_id, environment_id, project_idGet the S3-compatible credentials for a bucket. Backed by the Railway GraphQL query bucketS3Credentials.
resetexecbucket_id, environment_id, project_idredeploy_dependentsReset the credentials for a bucket in an environment. Backed by the Railway GraphQL mutation bucketCredentialsReset.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bucket_idstring
environment_idstring
project_idstring
redeploy_dependentsstringBoolean passed as a string, for example 'true'.

SELECT examples​

Get the S3-compatible credentials for a bucket. Backed by the Railway GraphQL query bucketS3Credentials.

SELECT
access_key_id,
bucket_name,
created_at,
endpoint,
region,
secret_access_key,
url_style
FROM railway.storage.bucket_s3_credentials
WHERE bucket_id = '{{ bucket_id }}' -- required
AND environment_id = '{{ environment_id }}' -- required
AND project_id = '{{ project_id }}' -- required
;

Lifecycle Methods​

Reset the credentials for a bucket in an environment. Backed by the Railway GraphQL mutation bucketCredentialsReset.

EXEC railway.storage.bucket_s3_credentials.reset
@bucket_id='{{ bucket_id }}', --required
@environment_id='{{ environment_id }}', --required
@project_id='{{ project_id }}', --required
@redeploy_dependents='{{ redeploy_dependents }}'
;