mach-composer-cli icon indicating copy to clipboard operation
mach-composer-cli copied to clipboard

Initial apply fails because of aws_acm_certificate_validation is missing

Open MichielBijland opened this issue 3 years ago • 2 comments

src/mach/templates/partials/endpoints/aws_endpoints.tf is missing aws_acm_certificate_validation resource and terraform will start using certificate before it's ready resulting in failed deploy.

MichielBijland avatar Jan 04 '22 15:01 MichielBijland

After the cert failure, on the next run, the error was Error: error creating API Gateway v2 API mapping: NotFoundException: Invalid domain name identifier specified

boro2g avatar Jan 04 '22 15:01 boro2g

aws_route53_record.main: Creating...
aws_route53_record.main: Still creating... [10s elapsed]
aws_route53_record.main: Still creating... [20s elapsed]
aws_route53_record.main: Still creating... [30s elapsed]
aws_route53_record.main: Still creating... [40s elapsed]
aws_route53_record.main: Creation complete after 46s [id=XXXXXX.com_A]

Error: error creating API Gateway v2 API mapping: NotFoundException: Invalid domain name identifier specified
{
  RespMetadata: {
    StatusCode: 404,
    RequestID: "f8d68589-0239-445d-b17a-..."
  },
  Message_: "Invalid domain name identifier specified"
}

  on site.tf line 109, in resource "aws_apigatewayv2_api_mapping" "main":
 109: resource "aws_apigatewayv2_api_mapping" "main" {

boro2g avatar Jan 04 '22 15:01 boro2g

"moved" this issue to https://github.com/mach-composer/mach-composer-plugin-aws/issues/4

mvantellingen avatar Dec 02 '22 16:12 mvantellingen