Skip to content

2021 11 8 (Monday) Deployment

Mike Marcotte edited this page Nov 9, 2021 · 3 revisions

General Notes

This deployment includes one important bugfix to resolve an issue where newly created petitioner accounts from eAccess codes have been getting setup improperly. It also reduces the chatter for some debugging logging that we put in place to help resolve a websocket issue.

Bugfixes

Feature Stories

None

Timeline

  • 23:23 - Created the Pull Request
  • 00:06 - Tests pass
  • 00:07 - Merged the PR CircleCI Build
  • 00:16 - Tests pass; deploy step starts
  • 00:39 - Deploy step fails on Terraform attempting to recreate after deleting the websocket custom domain name mapping
- Error: error creating API Gateway v2 API mapping: ConflictException: ApiMapping key already exists for this domain name
│ 
│   with module.ef-cms_apis.module.api-east-blue.aws_apigatewayv2_api_mapping.websocket_mapping,
│   on ../api/websockets.tf line 223, in resource "aws_apigatewayv2_api_mapping" "websocket_mapping":
│  223: resource "aws_apigatewayv2_api_mapping" "websocket_mapping" {
│ 
╵
╷
│ Error: error creating API Gateway v2 API mapping: ConflictException: ApiMapping key already exists for this domain name
│ 
│   with module.ef-cms_apis.module.api-west-blue.aws_apigatewayv2_api_mapping.websocket_mapping,
│   on ../api/websockets.tf line 223, in resource "aws_apigatewayv2_api_mapping" "websocket_mapping":
│  223: resource "aws_apigatewayv2_api_mapping" "websocket_mapping" {

01:25 - was able to import the resources back into terraform with:

terraform import module.ef-cms_apis.module.api-east-blue.aws_apigatewayv2_api_mapping.websocket_mapping gecdr9/ws-blue.dawson.ustaxcourt.gov
terraform import module.ef-cms_apis.module.api-west-blue.aws_apigatewayv2_api_mapping.websocket_mapping 6klcoh/ws-blue.dawson.ustaxcourt.gov

Was able to use this aws cli call to identify this id:

aws apigatewayv2 get-api-mappings --domain-name ws-blue.dawson.ustaxcourt.gov --region us-east-1
aws apigatewayv2 get-api-mappings --domain-name ws-blue.dawson.ustaxcourt.gov --region us-west-1

🙌 @halprin for the help troubleshooting

Clone this wiki locally