Data source
aws.s3.Bucket
This is a data source (read-only). Use with the read keyword.
Example
let bucket = read aws.s3.Bucket {
# Replace with the name of an existing S3 bucket that the caller can read.
bucket = 'carina-example-existing-bucket'
}
Lookup Inputs
bucket
-
Required: Yes
-
Type:
String
Name of the S3 bucket to look up.
Attributes
arn
- Type:
Arn (pattern: /^arn:(?:aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b|aws-iso-e|aws-iso-f|aws-eusc):s3:::.+$/ (Full)) - Read-only
ARN of the bucket.
region
- Type:
String - Read-only
AWS region the bucket is in.
bucket_domain_name
- Type:
String (len: 1..=1024) - Read-only
Bucket domain name (<bucket>.s3.amazonaws.com).
bucket_regional_domain_name
- Type:
String (len: 1..=1024) - Read-only
Region-specific bucket domain name (<bucket>.s3.<region>.amazonaws.com).
hosted_zone_id
- Type:
Route53HostedZoneId (pattern: /^Z[A-Z0-9]+$/ (Full), len: ..=32) - Read-only
Route 53 Hosted Zone ID for the bucket's region.