Create it
- Console
- CLI and API
- Coding agent
- Open the environment, then New service › Blueprint.
- Find AWS CloudFront 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/cloudfront/default/1.2.1, the manifest the Console form is built from.
All 18 variables
All 18 variables
All 7 outputs
All 7 outputs
Reference
From the Blueprint’s README. Creates an AWS CloudFront distribution in front of a single HTTP/S origin (an ALB, application host, or S3 website endpoint) with configurable caching, price class, optional custom domains, and geo restrictions. By default the distribution serves over the CloudFront-managed*.cloudfront.net certificate; set aliases + acm_certificate_arn (certificate must be in us-east-1) to serve custom domains.
Credentials
Uses the Qovery cluster’s AWS credentials (credentials.default: cluster). The credentials must allow the CloudFront and (when using ACM) certificate actions listed under Required IAM permissions. When role_arn is set, the listed permissions are needed by that role instead (see Assuming an IAM role).
Variables
Required
Distribution
Origin
Caching / viewer
Custom domain & geo
IAM role
Outputs
Notes
- Caching uses the self-contained
forwarded_valuesconfig (query string forwarded, cookies not), so the blueprint doesn’t depend on a managed cache policy id. The AWS provider is pinned to~> 5.0. - CloudFront is a global service; the provider
region(from the cluster) only configures the AWS client.
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
Whenrole_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.