skip to Main Content

Amazon web services – Terraform – Addition of security group to aws_instance leads to replacement of the instance

I have a terraform file, which is responsible for creation of an ec2 instance as well as the security groups. resource "aws_instance" "ec2" { ami = "ami-06791f9213cbb608b" instance_type = "t2.micro" key_name = "terraform-key" depends_on = [aws_security_group.ssh_group] security_groups = [aws_security_group.ssh_group.name] }…

VIEW QUESTION

Redis – Error while trying to run a Nest.js on EC2 machine

npm run start:dev > [email protected] start:dev > cross-env NODE_ENV=development nest start --watch node:events:489 throw er; // Unhandled 'error' event ^ Error: spawn nest ENOENT at ChildProcess._handle.onexit (node:internal/child_process:285:19) at onErrorNT (node:internal/child_process:483:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) Emitted 'error' event on ChildProcess instance at:…

VIEW QUESTION

Amazon web services – Can't access S3 bucket as root

I've created a bucket with the following policy: { 'Version': '2008-10-17', 'Statement': [{ 'Sid': 'eb-58950a8c-feb6-11e2-89e0-0800277d041bc', 'Effect': 'Deny', 'Principal': { 'AWS': '*' }, 'Action': '*', 'Resource': bucket.attrArn }] } which restricts any action on the bucket. Now I can't do anything…

VIEW QUESTION
Back To Top
Search