Releases: cloudposse/terraform-aws-amplify-app
Releases · cloudposse/terraform-aws-amplify-app
v1.0.1
v1.0.0
v0.3.0
Feature/add id output @Dvelezs94 (#9)
what
- Add amplify app Id as output
why
- Useful for adding notifications through SNS and other cases
Sync github @max-lobur (#7)
Rebuild github dir from the template
v0.2.1
🚀 Enhancements
Add `sub_domains` output @aknysh (#5)
what
- Add
sub_domains
output
why
- Needed to create DNS CNAME records in the custom domain DNS zone to point to the Amplify app
sub_domains = toset([
{
"branch_name" = "dev"
"dns_record" = "dev CNAME d3id0e13ftymve.cloudfront.net"
"prefix" = "dev"
"verified" = false
},
{
"branch_name" = "main"
"dns_record" = " CNAME d3id0e13ftymve.cloudfront.net"
"prefix" = ""
"verified" = false
},
])
v0.2.0
Add a variable to provide a list of IAM policy actions for the IAM service role for the Amplify app. Update custom domain configuration @aknysh (#4)
what
- Add a variable to provide a list of IAM policy actions for the IAM service role for the Amplify app
- Update custom domain configuration. Add a new variable
domain_config
why
-
Amplify apps without a backend don't need an IAM role. Amplify apps with a backend need an IAM role, but many of them don't need a full set of actions as defined in the default set for the role. Allow specifying a custom set of actions for the IAM role. For example, for Amplify apps with server-side rendering, only the following IAM permissions are required (see Amazon CloudWatch Logs for SSR apps for more info)
logs:CreateLogStream logs:CreateLogGroup logs:DescribeLogGroups logs:PutLogEvents
-
Update custom domain configuration. Add a new variable
domain_config
. A custom domain is app-wide, not branch-wide, and needs to be specified in a separate variable (not part of the app's environments)
v0.1.0
Terraform module to provision AWS Amplify apps, backend environments, branches, domain associations, and webhooks @nitrocode (#2)
what
- Initialize module
- Setup basic app
- aws_amplify_app - create single app
- aws_amplify_branch - able to create multiple
- aws_amplify_backend_environment - able to create multiple (e.g. one for default branch, one for dev branch)
- aws_amplify_webhook - able to create multiple (one per branch)
- aws_amplify_domain_association
why
- Terraform module to provision AWS Amplify apps, backend environments, branches, domain associations, and webhooks
references
- DEV-130
- Inspired by https://github.com/masterpointio/terraform-aws-amplify-app
- https://docs.aws.amazon.com/amplify/index.html
notes
test/terratest
will not succeed since Amplify needs a GitHUb Personal Access Token (PAT) to be able to work with a repository
Error: creating Amplify App (eg-ue2-test-amplify-lzcegv): BadRequestException:
There was an issue setting up your repository. Please try again later.({"message":"Bad credentials",
"documentation_url":"https://docs.github.com/rest"})
The PAT can be read from SSM or ASM in the amplify-app
component that uses this module
data "aws_ssm_parameter" "github_pat" {
name = var.github_personal_access_token_secret_path
with_decryption = true
}