Create it
- Console
- CLI and API
- Coding agent
- Open the environment, then New service › Blueprint.
- Find Amazon S3 in the catalog and pick the major version.
- Fill in the variables. Required ones are marked; the others use their defaults.
- Create the service, and deploy it now or later.
Variables and outputs
Generated fromqbm.yml at AWS/s3/default/1.4.1, the manifest the Console form is built from.
All 6 variables
All 6 variables
All 3 outputs
All 3 outputs
Reference
From the Blueprint’s README. Creates an S3 bucket with encryption, versioning, and public access block configured. The bucket name is automatically lowercased before creation.Variables
Outputs
Upgrading to 1.2.0
bucket_policy defaults to true, so upgrading an existing bucket attaches the TLS policy. S3 holds a single policy per bucket: this one replaces any policy attached outside the blueprint. Preview the update before applying it (the plan shows aws_s3_bucket_policy.this[0] being created), and set bucket_policy = false if the bucket relies on a policy managed elsewhere. Setting it to false after the policy was replaced deletes the policy; it does not restore the previous one.
Assuming an IAM role
Optional. Set therole_arn variable to make the blueprint assume an IAM role instead of using the configured credentials directly; leave it unset to use them as is.
- Format:
arn:aws:iam::<account-id>:role/<name>, with an optional path (role/<path>/<name>). Theaws-cn,aws-us-govandaws-iso*partitions are accepted too. - The role must be in the same AWS account as the credentials; cross-account roles are not supported.
- The role’s trust policy must allow the deploy credentials’ IAM principal to assume it.
- The role itself must carry the permissions listed in Required AWS IAM permissions.
Required AWS IAM permissions
WhenUnlessrole_arnis set, Terraform makes these AWS calls as the assumed role, so the permissions below belong to that role. Access to a user-provided Terraform backend, if you use one, is not covered byrole_arn: it keeps using the deploy credentials.
role_arn is set, the credentials used to deploy this blueprint must allow the actions below. Resource scope: arn:aws:s3:::* (bucket-level) and arn:aws:s3:::*/* (object-level). The last two statements, s3:ListBucketVersions and the object deletes, are only needed when force_destroy = true: Terraform uses them to empty the bucket before deleting it.