This is the most up to date source for the code in my book, "Terraform in Action". If you find an error or typo, please file an issue or make a pull request to fix it. I also welcome any changes that aid in readability or documentation. Thanks! - Scott
manning-code's Introduction
manning-code's People
Forkers
sleeping-barber mrajani vijayraavi taginn onuryaz dtherhtun prashdeep npalm genekuo devops-ng boriphuth shandr azurecloudmonk realityctrl sammybolye akshay3030 beaubaby ananta-code mirzawaqasahmed vidushi0808-hub marcuspat arun9theja arunvel1988 ssakarim hrvojep abebebeza cagdasoezguer bedoyacloud adrianl2020 rishup77 saurabhkakar0 dvvj redakita adnanali14 jazzasein dzhan85 rufathpe jasric89 saisaran796 rama543 gautham10000 north-center-positronics longbeards dineshaggarwal mukvin huynhminhchu jxt518 spikeydealer kdollar418 mnifr gengxi yemitoye terraformlearning2021 vaibhav29-indi solly0702 ratsalad21 velagamona juanpabloprado bernis2010 titik10 jaabanks joselazarosiqueira aravindavvaru didacf dhomane gitniran kynefuk tej-singh-rana nbenaglia yempane alassko raj17rane ayafor-code achorny halil-lnr renodesper pollyrolly sgsarv jamesvrooney echeadle logrusfr srini-555 alexf4dev rajdeva2009 asuresh0707 learnwiththamhv b-chandu adamszpilewicz crk-2020 alienvera inesh-reddy apeuta veronica-kirk ikermenka1 baalechicago roseyildiztas bahabai type1diab3t1c bienit loic-djimenoumanning-code's Issues
Error: Error creating DB Subnet Group: DBSubnetGroupAlreadyExists: The DB subnet group 'my-cool-project-vpc' already exists.
Getting the following error when I ran the complete version on ch4. This is the first time running the code!
Error: Error creating DB Subnet Group: DBSubnetGroupAlreadyExists: The DB subnet group 'my-cool-project-vpc' already exists.
│ status code: 400, request id: 7e127cce-77c6-42fb-b52d-a0db080e72dc
│
│ with module.networking.module.vpc.aws_db_subnet_group.database[0],
│ on .terraform/modules/networking.vpc/main.tf line 408, in resource "aws_db_subnet_group" "database":
│ 408: resource "aws_db_subnet_group" "database" {
│
Should I run `terraform init` in every folder in the repo?
Looks like everytime I try to run main.tf
in the folder, I have to initialize first.
For example, terraform init
in chapter1/listing1.1
to run main.tf
inside of the folder.
And then, if I want to run main.tf
in chapter1/listing1.2
, I have to init again inside the folder.
Can I just run terraform init
one time in the repo?
CRITICAL SECURITY ISSUE
Hi! I was doing automated scanning and research when I came across your plainly visible AWS S3 bucket App ID and Secret, and discovered they were able to be used to access your buckets! Probably not too good, I don't think. Team Hydra Hacking says Hi though!
POC: Just look at this commit you made 5 days ago at the time of posting
Good luck! :)
Can you explain when to use commas?
Hi! I am really loving your book so far, but in chapter 4, I was attempting to copy all of the files line for line so I can get a feel for writing the code. However on line 65, I put commas after backend_port as well, but I was not able to reach the website. Once I double checked and removed the comma, it worked. Can you explain when you should and shouldn't use commas?
Thanks again!
Austin DeLauney
Error when initializing cloudinit provider
Problem running terraform apply on chapter8/part2b_multicloud-mmorpg-nomad
I get this error:
Dustins-MBP:part2b_multicloud-mmorpg-nomad dustinalandzes$ terraform apply
╷
│ Warning: Empty provider configuration blocks are not required
│
│ on .terraform/modules/mmorpg/main.tf line 1:
│ 1: provider "nomad" {
│
│ Remove the nomad.aws provider block from module.mmorpg. Add nomad.aws to the list of configuration_aliases for nomad in required_providers to define the provider configuration name.
│
│ (and one more similar warning elsewhere)
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/mmorpg/main.tf line 14, in locals:
│ 14: aws_region = sort(data.nomad_regions.current.regions)[1]
│ ├────────────────
│ │ data.nomad_regions.current.regions is list of string with 1 element
│
│ The given key does not identify an element in this collection value: the given index is greater than or equal to the length of the collection.
╵
Will try to give some more detail at a future date, figured other people would run into this. I ended up skipping this and moving on to part 3
unable to run code from chapter 4
I have just purchased the book today and I am through chapter 4. I have followed your code to the letter, found a couple of issues along the way and seemed to be able to fix them. I keep getting a 502 Bad Gateway. I have gone through your code and compared it to mine, line-by-line and it is pretty much the exact same, save for the mysql versioning and the fact that terraform is requiring me to set the db_password output to sensitive=true.
None-the-less, this code isn't working. Is this book outdated or is there something more I can do?
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.