Skip to main content

Posts

Showing posts from November, 2022

How to upgrade node version in Linux (Ubuntu)?

Install nvm using the commands below: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash source ~/.nvm/nvm.sh Usage: nvm install <version>       Download and install a <version> nvm use <version>           Modify PATH to use <version> nvm ls                      List versions nvm ls-remote               To list available versions

AWS Route53 - Private Hosted Zone

Issues faced while launching ECS Tasks (pulling image from an ECR repo) from a private subnet

I created a private subnet. I created an ECR repo with Private visibility and pushed an image into it. Then, I created an ECS Cluster. I added a Task Definition with No Task Role and a Task Execution Role (ecs-tasks.amazonaws.com can assuem this role), with AmazonECSTaskExecutionRolePolicy permission policy. The container in the task definition has private repository authentication enabled. Then, I created a task as follows: aws ecs run-task --task-definition <task-definition-name> --cluster <ecs-cluster-name> --network-configuration '{"awsvpcConfiguration": {"subnets":["<subnet-id>"], "securityGroups": ["<sg-id>"], "assignPublicIp": "DISABLED" }}' --count 1 --launch-type FARGATE The task did not start and stopped with the following error: ERROR: ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve ecr registry au...