All Questions
Tagged with terraform amazon-ec2
16
questions
0
votes
0
answers
37
views
How to add tags automatically to AWS Volumes with Terraform
I have the following Terraform script to deploy an EKS cluster (tags left empty to hide values)
EKS.tf
provider "aws" {
region = var.region
profile = var.profile
default_tags {
...
0
votes
1
answer
262
views
AWS instance connect decrypt password is giving error as invalid private key, how to fix it?
I have cretaed an instance using terraform code and also its key pair for windows.
To get the admin password I clicked on the below decrypt button and getting as invalid decrypt key.
Please suggest ...
0
votes
1
answer
1k
views
ECS service is not starting tasks
Hello I am using aws ecs and terraform to deploy a few containers. I am trying to create an ecs cluster with ec2 instances and in each instance I want to run two nginx containers. I have a load ...
0
votes
1
answer
417
views
How can I find the list of instance types that do not require ENA and the list of AMIs that support ENA?
I have this Terraform file -
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.23"
}
}
required_version = ">= ...
0
votes
1
answer
121
views
Can't find Rancher instances in AWS EC2 dashboard
I followed the official AWS quickstart guide from the Rancher website:
https://rancher.com/docs/rancher/v2.5/en/quick-start-guide/deployment/amazon-aws-qs/
The tutorial consists in :
Downloading a ...
0
votes
1
answer
3k
views
AWS ALB Shows Target Group unhealthy, even though port 80 is open to Internet
I've built an AWS ALB & Target group via Terraform and everything looks correct but the Target Group is reporting unhealthy for HTTP, HTTPS, and TCP. The instance is a t3.nano in us-east-2 and ...
-1
votes
1
answer
50
views
How to control AWS EC2 live from a web app [closed]
We are building some penetration testing stations (both attack & target) for a hackathon in AWS VPC and I need a way to control the following in a live setting:
VPN connection access: if someone ...
0
votes
1
answer
220
views
SSH to EC2 instance timedout
I created an AWS EC2 instance to set up prometheus on it, I created a new ssh keypair and provisioned the instance using terraform, I used instance type as "t3.large" and an SSD disk of ...
0
votes
1
answer
7k
views
Terraform: Attach multiple security group to EC2 instance
How to attach multiple security groups at EC2 creation? I have modularized as below:
**networking/main.tf**
# Web Server Security Group
resource "aws_security_group" "web_sg" {
...
0
votes
1
answer
117
views
Terraform: How to variablize VPC Subnets
I want to provision 2 domain controller instances in two subnets. VPC, subnets and other networking sections are already created.
main.tf
resource "aws_instance" "PerformanceDC01"...
1
vote
1
answer
932
views
Request times out when applying terraform plan on AWS, or describing instances through AWS CLI
I am having an issue accessing the following endpoint from an EC2 instance located in a private subnet.
Architecture is the following:
VPC
Private Subnet 1 (there is a route on 0.0.0.0/0 to Transit ...
0
votes
1
answer
3k
views
Getting EC2 Windows Password from instances when using Terraform
I'm struggling to get the password from a couple of new ec2 instances when using terraform. Been reading up through a couple of posts and thought i had it but not getting anywhere.
Here's my config:
...
1
vote
2
answers
2k
views
AWS Elastic Load Balancer: Forwarding Requests to all Instances
Using Terraform to create Autoscaling Group (with 2 instances) and Elastic Load Balancer (ELB) in AWS.
The instances are running simple http-echo server written in Go on Port 3000.
When the DNS ...
0
votes
1
answer
535
views
AWS Autoscaling Group: Invalid fleet configuration Error
Using Terraform to create Autoscaling Group in AWS.
Using mixed_instances_policy in aws_autoscaling_group resource of Terraform.
resource "aws_launch_template" "go_app" {
image_id = ...
0
votes
2
answers
562
views
Terraform-use same tf file for multiple deployment?
resource "aws_instance" "win-example" {
ami = "${lookup(var.WIN_AMIS, var.AWS_REGION)}"
instance_type = "t2.medium"
count="${var.count}"
vpc_security_group_ids = ["${var.security_group_id}"]
...