All Questions
42
questions
0
votes
1
answer
124
views
AWS EC2 instance cannot see another instance on a specific port
I have created two EC2 instances using CloudFormation - one for the Apache web-server, another one for the PostgreSQL DB. For some reason the web-server cannot telnet into the DB instance on port 5432 ...
1
vote
1
answer
2k
views
How to Apply Egress rules to Default Security Group - AWS
I would like to apply port 443 outbound rule to the 'Default' security group. It worked by creating a dedicated block OutboundRule (which is commented out). Instead of creating a new block, I want to ...
2
votes
1
answer
769
views
CWAgent Disk Space Alarms
I'm trying to implement an alarm(in Cloudformation) for disk space free using metrics from the Cloudwatch agent and I'm having issues with devices shuffling DeviceID.
I encountered this earlier when ...
2
votes
2
answers
2k
views
Create EC2 Instances and Volumes Using CloudFormation
I'm trying to use CloudFormation to deploy two Windows Server 2019 EC2 instances and also attach a new volume to each instance (two instances, two volumes total). I get the following error when I ...
2
votes
1
answer
246
views
Failed to connect instance with ALB
I'm trying to build a system like this one:
I can't connect to the Instance in private public through ALB. I checked my cloudformation code several times and still couldn't find problem. Please help ...
1
vote
1
answer
149
views
Can't connect to the instance in private subnet through a ALB
I would like to build a simple AWS structure just like the picture. But I failed to connect the instance by using tera term. I checked everything but cannot find anything wrong, can someone please ...
6
votes
1
answer
9k
views
Adding an existing security group CloudFormation EC2 template
Instead of having to set ingress and egress rules, how do I reference existing EC2 security groups in a CloudFormation Template?
Resources:
EC2Instance:
Type: AWS::EC2::Instance
...
0
votes
1
answer
497
views
How do I add storage with cloud templating?
I have a CloudFormation template to spin up an EC2 instance.
Parameters:
InstanceType:
Type: String
Description: Instance type for RStudio. Default is t2.micro.
AllowedValues:
- ...
0
votes
1
answer
309
views
How to dynamically add users clause in CloudFormation::Init (or, how to programmatically set template keys)
The AWS::CloudFormation::Init documentation allows the specification of users to be created on ec2 instances, thusly:
"users" : {
"myUser" : {
"groups" : ["groupOne", "groupTwo"],
...
1
vote
1
answer
611
views
How to assign a private IP dynamically generated with AWS Cloudformation?
I have an AWS Cloudformation, and I want two EC2 instances A and B on a private subnet under the same VPC.
In the application, I need A to access B.
How can I configure A with the dynamically ...
9
votes
1
answer
2k
views
Can't SSH into AWS CloudFormation Stack Instance
I have a scalable load balancer set up right now that was mostly followed from this template:
https://github.com/satterly/AWSCloudFormation-samples/blob/master/LAMP_Multi_AZ.template
After adjusting ...
3
votes
1
answer
4k
views
how to get public IP of instance using cloud formation
I want to output public IP of my instance in cloud formation. This is the relevant part of my yaml file.
What attribute do I have to specify to get public IP. (Here myec2 is where I described my ...
0
votes
1
answer
154
views
Scheduling EC2 Instances in AWS
I have an EC2 instance that I use rarely, so it spends a lot of time in a stopped state. Because it's using an elastic IP, I want to schedule a very brief start and stop command once an hour, to avoid ...
-2
votes
1
answer
446
views
How to increase limit of concurrent EC2 instances running in a region?
I am trying to add three t2.small instances to single region, in this case us-east-2, but couldn't do so.
I could edit this question to tell you the precise error message if requested.
How do I ...
1
vote
0
answers
105
views
AWS Stack Updates and ENIs
When I try to update a stack with a new image for one of the instances, I get an error saying: "Interface: yyy in use". It sounds like because I'm using ENIs in my stack template, the instance that ...