terraform-beginner-to-advanced-resource's Issues
Files /Folder organization
Great course. Would be great if we get feedback about the trainning. I am stuck on chapter 4 with the files structure.
Error occuring while using first ec2 machine
graph.tf has deprecated element
resource "aws_eip" "lb" {
instance = aws_instance.myec2.id
vpc = true
}
you get this message:
"vpc" is deprecated
removing vpc = true or commenting it, removed the message
Error with Terraform Init. Error message saying: Could not download module "vpc" (infra.tf:6) source code from │ "git::https://github.com/terraform-aws-modules/terraform-aws-vpc?ref=v5.1.2": error downloading │ 'https://github.com/terraform-aws-modules/terraform-aws-vpc?ref=v5.1.2': git must be available and on the PATH.
Terraform_error.docx
https://github.com/zealvora/terraform-beginner-to-advanced-resource/blame/03d928057e603d3bcb5e99c03ca545e5b11e2e60/Section%202%20-%20Read%2C%20Generate%2C%20Modify%20Congiruations/large-infra.md#L6
Git is installed on my pc. Can't figure out how to exactly solve this error. Please help.
Organizing files within a directory structure
I'd be great if instead of having us create the folder structure manually for each course's specific files, that they just existed within folders already within GitHub. That way we could just download from the repo all the needed files with them organized by course already. If possible, maybe i'll just make a pull request with the layout already created as an example.
Fetching Data from Maps and List Variable Video
On the "Fetching Data from Maps and List Variable" Video. With the variables. tf file you only have the List Example. Might be helpful if you also add the Map code as well which is aligned with the video:
resource "aws_instance" "myec2" {
ami = "ami-082b5a644766e0e6f"
instance_type = var.types["ap-south-1"]
Terraform
aws_ami for ubuntu is not working
While running this code I am always getting this error, can you help for this.
provider "aws"{
region = "ap-south-1"
access_key = "key"
secret_key = "kay"
}
data "aws_ami" "ubuntu"{
most_recent = true
owners = ["099720109477"]
filter {
name = "name"
#values = ["amzn2-ami-hvm-*-x86_64-gp2"]
values = ["ubuntu/images/ubuntu-*-*-amd64-server-*"]
}
}
resource "aws_instance" "new_vm" {
ami = "data.aws_ami.ubuntu.id"
instance_type = "t2.micro"
}
Error:
aws_instance.new_vm: Creating...
╷
- Sometime:
│ Error: Error launching source instance: InvalidAMIID.Malformed: Invalid id: "aws_ami.ubuntu.id" (expecting "ami-...")
│ status code: 400, request id: be8982b3-11c5-4159-9375-654814ba2b57
│
│ with aws_instance.new_vm,
│ on data_source.tf line 28, in resource "aws_instance" "new_vm":
│ 28: resource "aws_instance" "new_vm" {
ws_instance.new_vm: Creating...
- sometime
│ Error: Error launching source instance: UnsupportedOperation: AMI 'ami-0011ac562eeee4a55' with an instance-store root device is not supported for the instance type 't2.medium'.
│ status code: 400, request id: 328c37c1-848f-45ab-ae3f-3202a8fc899b
│
│ with aws_instance.new_vm,
│ on data_source.tf line 18, in resource "aws_instance" "new_vm":
│ 18: resource "aws_instance" "new_vm" {
Thank you
cannot see the varification badge in the Terraform Registry lesson in the Terraform Module & Workspaces Section
Missing module source
Dealing with Large Infrastructure
reference a source module which doesn't exist. Can you please add the missing terraform-aws-modules
directory?
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
....
}
Terraform
Terraform remote exec refusing to fail
Whenever I run the code in section 3 that explains how to artificially fail the deployment, the actual deployment just keeps on printing logs like it is trying to install. I had it running for like 7 mins, it still refuses to fail the deployment.
Please look into this
looking for dot_sh script files to automate TF workflow
looking for dot_sh script files to automate TF workflow
- apply.sh
- plan.sh
- destroy.sh
I am not seeing on github
pls let me know how to obtain
ty
opening Load order.md opens dynamic block files and dynamic-block.md opens Load order files in the Video-Document Mapper
when clicking on 27 | Load Order and Semantics -> dynamic block code opens up
and when clicking 28 | Dynamic Blocks -> load order code opens up
but if I select the files at the left side bar they open correct files.
2024-05-16.17-58-08.mp4
Outputs for EIP and Bucket Not What is Shown in Video Section4-31 - Code not specific enough.
The code given for outputs produces the whole object not just the IP and bucket dns.
Replacement code used for outputs includes the appropriate object property:
output "eip" {
#value = aws_eip.lb
value = aws_eip.lb.public_ip
}
output "mys3bucket" {
value = aws_s3_bucket.mys3.bucket_domain_name
}
Key pair creation steps
Hi,
It would be helpful if the instruction is given to create a key-value pair and how to update the key-value pair in AWS?
Suggestion to code update? reource "aws_eip" in the eip.tf file in lesson 111 Implementing Remote State Connections
original code:
resource "aws_eip" "lb" {
vpc = true
}
here vpc = ture is deprecated
the code i replaced it with after reading the doc:
resource "aws_eip" "lb" {
# vpc = true -> is deprecated
domain = "vpc"
}
In terraform_remote_state we got duplicate files in security part with remote-state.tf and remote_state.tf
In terraform_remote_state explanation we got duplicate files in security part with remote-state.tf and remote_state.tf
remote-state.tf
`data "terraform_remote_state" "eip" {
backend = "s3"
config = {
bucket = "kplabs-terraform-backend"
key = "network/eip.tfstate"
region = "us-east-1"
}
}
remote_state.tf
data "terraform_remote_state" "eip" {
backend = "s3"
config = {
bucket = "kplabs-terraform-backend"
key = "network/eip.tfstate"
region = "us-east-1"
}
}`
attributes.tf vpc=true depricated
Response from terraform plan:
Warning: Argument is deprecated
│
│ with aws_eip.lb,
│ on attributes.tf line 16, in resource "aws_eip" "lb":
│ 16: vpc = true
│
│ use domain attribute instead
│
│ (and one more similar warning elsewhere)
AWS code (as at 11Jun2023):
resource "aws_eip" "lb" {
instance = aws_instance.web.id
domain = "vpc"
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.