Questions tagged [amazon-ec2]

For questions about using Amazon Elastic Compute Cloud in DevOps, including deploying, monitoring and scaling applications in EC2. For questions specifically about monitoring EC2 with [aws-cloudwatch] use that tag. For the EC2 container service use the [amazon-ecs] tag.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Ansible dynamic inventory using AWS plugin — how to obtain internal DNS records or private IP?

Seeking help from those who've worked with dynamic inventory in Ansible. I have Ansible set up with the aws_ec2 plugin (not using the python script as it's been too problematic). Currently, I'm only ...
0
votes
1answer
20 views

How to Automate VM provisioning and setup using code?

Here is what I want to achieve. I write code(Java, NodeJs, Go) to tell the program which Cloud Provider to choose- AWS/Azure write code to create a instance , lets say AWS - EC2 instance under which ...
0
votes
0answers
23 views

Automated Benchmarking Environment based on Github Actions/Docker/AWS-EC2

We set up a benchmarking platform that allows to easily run docker containers which execute a (self-written) benchmark program with different encryption libraries and write the measured results to a ...
0
votes
0answers
21 views

Kubernetes Node randomly fails with “Cannot connect to the Docker daemon”

In my kubernetes cluster sometimes a node becomes NotReady with the error ContainerGCFailed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. The node ...
0
votes
0answers
15 views

Jenkins pipeline: some folders in workspace are owned by root

In the pipeline job, the Jenkinsfile is provided from SCM, github: However it's causing permission issue. Then job runs on an aws ec2 instance, so the first step is to pull from github. I then ssh ...
1
vote
1answer
32 views

Sending HTTP requests to private EC2 DNS from other EC2 host works, but not from container on EC2 host

I want to make a container hosted on one EC2 host communicate with another container hosted on another EC2 host. Currently, if I send an HTTP request from host A to host B using host B's private DNS ...
-1
votes
2answers
38 views

A tool to orchestrate cloud server (virtual machine) instances

Whenever I use search keywords such as "orchestration" or "server clusters" or "iaas" I'll always end up in hundreds of results that are going to talk about containers ...
1
vote
1answer
16 views

AWS Setting instance to use domain from another account

We're transitioning between accounts and we have an app on our new account but we want to use the domain from our old account. We plan on shutting off the old account soon and transitioning everything ...
1
vote
0answers
31 views

Terraform duplicates the security groups, how do I stop it?

I'm using terraform to create two instances and a security group. Here is how I did it: # bastion host resource "aws_instance" "bastion_1a" { ami = data.aws_ami....
2
votes
1answer
27 views

Cross Account EC2 Access from within Amazon Workspace

I have a requirement to setup a bastion host (Amazon Workspace) to connect to an ec2 instance living on a different account. As Amazon Workspaces cannot assume a role the way EC2s can, A cross ...
0
votes
0answers
22 views

ubuntu user in ec2 instance spawned by auto scaling group has no password

I created an AMI from an ec2 instance wherein I gave the ubuntu user a password. However, when the Auto Scaling Group spawns an ec2 instance and I log into the ec2 instance, I notice it does not have ...
2
votes
1answer
26 views

amazon ec2 ip whitelisted on a third party service provider

Currently we are running an application in a single amazon ec2 machine. On our application we are using some third party solution. For using those solution, we have asked the third party service ...
1
vote
1answer
23 views

AWS: Onboarding on premise instance

Is there a way to onboard the Raspberrypi device in AWS. So that the same device can be managed using ec2 console and it can seamlessly work with the rest of AWS services? I am just an experimental ...
3
votes
2answers
24 views

Install apache on awa ec2 from locally installed ansible server on my laptop

I would like to install apache2 remotely on aws ec2 instance from my locally installed ansible server on my laptop. I have also the. pem key of the instance. Now what Ip need to put in /etc/ansible/...
3
votes
1answer
36 views

EC2 EBS Free Tier - Is Storage Reusable?

Can I delete an EC2 instance and start off from scratch on my EBS free tier usage? For instance, I was running a Red Hat server with 10 GB of EBS being used. However, I deleted that EC2 within a few ...
1
vote
1answer
419 views

AWS API Gateway as an http proxy to ALB

I have a setup of API Gateway proxying all the requests to my EC2 instances behind load balancer (ALB). But I want api endpoint to have a nice domain my-api.mydomain.com. I'm trying to accomplish that ...
1
vote
1answer
94 views

User data in original windows ec2 instance does not get executed in custom ami

I created a windows Ec2 instance with user data in it. In my ec2 instance I downlaoded git and installed it. Later in EC2 instance, I provided it with the user data which was supposed to download a ...
0
votes
1answer
31 views

JFrog on dedicated disk

Is it possible to install JFrog on a separate disk? For example in an AWS EBS I find their documentation a bit confusing, so i checked don't have a walk-through for this. I'm looking at this ...
0
votes
0answers
190 views

Problem deploying Docker Container from ECR on EC2 with Ansible

So, This question is tightly related to my previous one, which turned out to be a consequence of a different issue. To ensure every confusion is cleared up, I decided it is better to make a new ...
1
vote
1answer
25 views

Spin up an EC2 instance from within the application

I am developing the architecture of this application and the way we need to scale is not just stateless API requests, but it's a logical split of responsibilities. In other words, we may only be able ...
1
vote
0answers
29 views

Creating a Rails API on EC2 with Passenger Apache

Have been running into trouble setting up a Rails Api on an Apache server hosted on EC2, not sure if I am missing something but I have run through Phusions deployment docs for a passenger apache ...
0
votes
0answers
32 views

Associate an EC2 instance with a custom VPC in CloudFormation templates

I read through pages of CloudFormation JSON scripts and I can't seem to find how you place an EC2 Instance inside a custom VPC. For example, when you create a new EC2 Instance in the Console, there is ...
8
votes
1answer
213 views

Automate custom docker image deployment on AWS

This question is related to my previous one - but a bit more descriptive. I am trying to build automate the generation and deployment of a docker container. The docker container is created with packer....
1
vote
0answers
53 views

Testing AWS Systems Manager's Parameter Store

I plan to use AWS Systems Manager's Parameter Store to store sensitive information that I can use in a CodeBuild buildspec.yml file for Continuous Delivery. I follow the documentation here: https://...
1
vote
1answer
108 views

private subnets in an Auto Scaling Group on aws?

I watched a video series wherein the author used 3 private subnets for his Auto Scaling Group, and I also read the premium answer on this forum wherein the author says that you can use both public and ...
0
votes
1answer
25 views

Where is Puppet's enviroments directory on Amazon Linux2?

I am using Puppet version 3.8.7 on Amazon Linux2, trying to find the directory containing the Puppet environments. I tried to find it with the find command looking for files named "production" or ...
1
vote
1answer
27 views

Is there a way to clone an ec2 from inside the ec2 terminal?

I want to be able to back up my linux accadamy lab servers but they don't provide a way to to this. I'm wondering if it's posible to clone my EC2 lab server from inside the EC2 to get round this?
1
vote
0answers
134 views

Why does an 'InvalidSnapshot.NotFound' occur in Packer and how to solve it? [closed]

When I'm running sudo packer2 build -debug template.json with this code: { "variables": { "profile": "aws", "region": "eu-west-1" }, "builders": [{ "type": "amazon-chroot", "profile": "{{...
1
vote
1answer
21 views

How to ensure EC2's OS/application is loaded?

Recently I was playing around a bit with AWS as a part of a course that I am doing. I came across a situation that to be honest is keeping be in vilo. I made a web application which connects to a ...
1
vote
1answer
24 views

Kubernetes api service unit file

i was going through the kubernetes the hard way(kelsey), i see in the API server unit file with a cluster ip range as --service-cluster-ip-range=10.32.0.0/24 \ is it a default ip range ? my VPC ...
2
votes
1answer
34 views

What is the difference between EKS and EC2 installed kubernets?

I'm newbie in AWS usage. I don't understand the difference between EKS and EC2 installed kubernets? Amazon EKS makes it easy for you to run Kubernetes on AWS without needing to install and ...
0
votes
1answer
35 views

How to setup a permanent storage volume for EC2 instance?

I created an EC2 instance of r5ad.xlarge and installed Jenkins on it. However, after a few jobs I configured and ran I saw a warning about no space left. Then realised Jenkins was installed on 8 GB ...
1
vote
1answer
34 views

can't access my instances by public IP in a VPC (aka: what is wrong with my terraform)?

As stated in the title of the question, I have a Terraform file (attached below), but the infrastructure it builds doesn't allow me to connect by SSH (I get "Connection timed out"). So either the ...
1
vote
1answer
27 views

When should an application be copied to a new region?

I'm taking my first course For AWS cloud practitioner and I am curious: The case: I have a single, client-facing application hosted on an EC2 instance. Let's keep it simple and say it's brochureware, ...
4
votes
1answer
592 views

How does the creation of an AMI on AWS work and why is the creation time unpredictable?

Creation date: September 23, 2019 at 9:22:06 PM UTC+2 21:48: still waiting for completion 21:53: completed Sometimes it takes 15 minutes and sometimes longer. How does a creation of an AMI work and ...
1
vote
0answers
35 views

What is the Young's Modulus for EC2? [closed]

Young's Modulus is defined as follows: Young's modulus or Young modulus is a mechanical property that measures the stiffness of a solid material In the case of AWS Elastic Compute Cloud (EC2), the ...
0
votes
1answer
27 views

How to avoid a high number of requests for avoiding Amazon AWS EC2 instance AutoScalin?

If I set autoscaling for an EC2 instance in Amazon Web Services, how can I set optimized autoscaling for large numbers of connections in order to avoid unusual autoscaling?
-1
votes
1answer
50 views

Ansible ec2_vpc_net and ec2_vpc_subnet - where to set subnet default public ip

Since upgrading to these 2 Ansible modules I am having difficulties in setting the subnets to have default public IP when new instances are created by autoscaling? I can't find any setting on the ...
1
vote
0answers
345 views

Multiple VPC with overlapping CIDR [closed]

I am part of a large company that is either buying other companies and merging their assets into ours or having rouge development teams getting AWS accounts and then having to bring them under the ...
0
votes
1answer
34 views

How to probe all running aws ec2 instances and their sec groups, etc to generate templates?

Typically I spin up all aws ec2 instances together with all its accompanying security groups, volumes, etc ... by executing a series of aws cli commands. However when I manually use the aws console ...
1
vote
0answers
154 views

Terraform destroys and creates new AWS resources [closed]

Terraform destroys and creates new AWS resources when I modify the modules with new resources. I tried with: lifecycle { prevent_destroy = true } Getting the below error : the plan would ...
0
votes
1answer
38 views

Which AMI was my EC2 instance created from? [closed]

Is there any way to tell which AMI my EC2 instance was created from?
1
vote
1answer
38 views

How to manage Hashicorp Vault patching in AWS?

I'm setting up a Hashicorp Vault open source deployment in AWS, but I'm trying to figure out the best approach for keeping the underlying EC2 instances patched. I'm using AWS Systems Manager for ...
1
vote
1answer
24 views

Aws autoscaling group in private subnet, private communication?

I have a scenario - I have configured my frontend application in one autoscaling group and my backend application is in another autoscaling group. I'm using the load balancer also. But I don't want ...
0
votes
1answer
17 views

multiple projects per EC2 with Load Balancers

I have 2 EC2 instances and an Application Load Balancer. The Load is not too high, but I'm keeping both instances working just in case. Plus, it saves the time on deployment with (one at a time) and ...
0
votes
1answer
82 views

Custom metric for a Windows process on a Windows ec2 instance

I have a process (exe) on a Windows ec2 that is using up lots of memory. I would like to create a custom metric that will collect data and send to CloudWatch. I would like to also create an alarm when ...
1
vote
1answer
35 views

How to fail stack when EC2 spot is refused?

I'm using AWS Cloudformation to create EC2 spot instance (with block duration). In order to do this in cloudformation I'm using a Launch Template where spot configuration is set. Then my ...
0
votes
1answer
191 views

Can't get P3 spot instance on AWS

I'm new to aws-ec2. I'd like to make spot request for a p3.2xlarge instance in my local region (EU-Ireland) to benchmark V100 Tesla GPUs against my home GPU for deep learning. I have already ...
0
votes
1answer
167 views

Spot block vs reserved instances

Let's say we have a continuous process where each two hours we receive some data which has to be analysed by a fleet of workers on AWS EC2 instances which always complete their job within two hours (...
0
votes
1answer
68 views

AWS Site crashes every few hours

Every few hours, my Laravel website on AWS Elastic Beanstalk crashes and throws the following error: [Sun May 19 13:06:13.436195 2019] [php7:error] [pid 3431] [client] PHP Fatal error: require(): ...