Error: Stopped reason ResourceInitializationError: failed to download env files: file download command: non empty error stream: RequestCanceled: request context canceled caused by: context deadline exceeded
martes, 31 de agosto de 2021
Stopped reason ResourceInitializationError: failed to download env files: file download command: non empty error stream: RequestCanceled: request context canceled caused by: context deadline exceeded
querySrv ENODATA checking a Mongo SRV record using Node
The Mongo driver prefix the "hostname" with "_mongodb._tcp.".
miércoles, 18 de agosto de 2021
CloudFormation: resource "already exists in stack" after updating logical names
After refactoring a CloudFormation to have better logical names, I got a bunch of "already exists in stack" errors. Example:
2021-08-18 15:22:20 UTC+1000 BackendEcsTaskRole CREATE_FAILED x-ecs-executtaskion-role already exists in stack arn:aws:cloudformation:us-east-1:y:stack/x/ff05-11eb-80bd
2021-08-18 15:22:20 UTC+1000 BackendLogGroup CREATE_FAILED /x/backend already exists in stack arn:aws:cloudformation:us-east-1:616020545883:stack/x/ff05-11eb-80bd
2021-08-18 15:22:20 UTC+1000 BackendEcsExecutionRole CREATE_FAILED x-ecs-execution-role already exists in stack arn:aws:cloudformation:us-east-1:x:stack/x/ff05-11eb-80bd
2021-08-18 15:22:20 UTC+1000 BackendEcsCluster CREATE_FAILED x-ecs-cluster already exists in stack arn:aws:cloudformation:us-east-1:x:stack/x/ff05-11eb-80bd
If the resources can be safely deleted, one option is to create a temporary template with those conflicting resources removed. Submit it and have CloudFormation delete the physical resources. Then, submit again the refactored template letting CloudFormation create them again succesfully.
viernes, 6 de agosto de 2021
AttributeError: 'yaml._yaml.Mark' object has no attribute '__dict__' using cfn-lint and vscode-cfn-lint (VSCode)
CloudFormation Linter fo VS Code: https://marketplace.visualstudio.com/items?itemName=kddejong.vscode-cfn-lint
AWS CloudFormation Linter (CLI): https://github.com/aws-cloudformation/cfn-lint
I had an extra ! in a !GetAtt. The error went away when I deleted the extra !.
martes, 3 de agosto de 2021
Free graphical XML Schema viewer and designer
Oracle JDeveloper is a good option. The lighter "Java Edition - Generic" option is enough.