v0.1.0
cloudpossebot
released this
18 Apr 03:34
·
28 commits
to refs/heads/main
since this release
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
}