mach-composer-cli
mach-composer-cli copied to clipboard
Initial apply fails because of aws_acm_certificate_validation is missing
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.
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
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" {
"moved" this issue to https://github.com/mach-composer/mach-composer-plugin-aws/issues/4