hashicorp / learn-terraform-cloud Goto Github PK
View Code? Open in Web Editor NEWLicense: Mozilla Public License 2.0
License: Mozilla Public License 2.0
Hello,
Playing with TFC, I noticed when there was an issue with AWS credentials, I used short-lived credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN). The terraform plan just hung there without showing any clue what was wrong.
Raw log downloaded:
Terraform v1.6.2
on linux_amd64
Initializing plugins and modules...
{"@Level":"info","@message":"Terraform 1.6.2","@module":"terraform.ui","@timestamp":"2023-12-15T21:14:55.531419Z","terraform":"1.6.2","type":"version","ui":"1.2"}
resource "aws_instance" "web" {
ami = data.aws_ami.ubuntu.id
instance_type = "t2.micro"
key_name = aws_key_pair.deployer.key_name
user_data = file("data.sh")
vpc_security_group_ids = [
aws_security_group.allow_ssh.id,
aws_security_group.allow_http.id
]
I have the data.sh file in the repository, and I also have the index.html file. When Terraform runs, it applies the data.sh file, but for some reason, it doesn't apply the index.html file that is located in the same repository. Do I need to add something else for it to also take into account the index.html file?
#! /bin/bash
sudo apt update
sudo apt install -y nginx
sudo rm /var/www/html/index.nginx-debian.html
sudo cp index.html /var/www/html/
sudo systemctl start nginx
sudo systemctl enable nginx
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.