Skip to content

Releases: cloudposse/terraform-aws-amplify-app

v1.0.1

25 Nov 19:16
ddd84ef
Compare
Choose a tag to compare

🚀 Enhancements

default `var.domains` to `{}` @kevcube (#17)

what

  • if not specified, terraform errors trying to iterate over null

why

  • iterating with this module and wanted to use blank config, terraform errored.

references

v1.0.0

27 Jul 20:29
c495a4e
Compare
Choose a tag to compare
Update Amplify domain config @aknysh (#12)

what

  • Update Amplify domain config
  • Update tests
  • Update module versions

why

  • Allow associating multiple domains to an Amplify app

references

v0.3.0

24 May 19:22
fa90481
Compare
Choose a tag to compare
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

21 Apr 19:37
a2e25b6
Compare
Choose a tag to compare

🚀 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

20 Apr 22:18
9043680
Compare
Choose a tag to compare
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

18 Apr 03:34
ee4582a
Compare
Choose a tag to compare
Terraform module to provision AWS Amplify apps, backend environments, branches, domain associations, and webhooks @nitrocode (#2)

what

why

  • Terraform module to provision AWS Amplify apps, backend environments, branches, domain associations, and webhooks

references

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
}