This commit is contained in:
Greg Hendrickson
2023-11-19 06:35:31 -08:00
4 changed files with 8 additions and 47 deletions

22
.gitignore vendored
View File

@@ -1,21 +1 @@
*.terraform.lock.hcl
*.terraform/modules/modules.json
*terraform.tfstate.backup
*terraform.tfstate
*.terraform/providers/registry.terraform.io/hashicorp/aws/5.25.0/linux_amd64/terraform-provider-aws_v5.25.0_x5
*.terraform.tfstate.lock.info
*terraform.tfstate
*.terraform/providers/registry.terraform.io/hashicorp/aws/5.26.0/linux_amd64/terraform-provider-aws_v5.26.0_x5
aws/aws_simple/.terraform/providers/registry.terraform.io/hashicorp/template/2.2.0/linux_amd64/terraform-provider-template_v2.2.0_x4
aws/aws_simple/.terraform/providers/registry.terraform.io/hashicorp/aws/5.26.0/linux_amd64/terraform-provider-aws_v5.26.0_x5
aws/aws_simple/.terraform/terraform.tfstate
aws/example-backend/terraform.tfstate
aws/aws_vpc_peering/.terraform.lock.hcl
aws/aws_vpc_peering/terraform.tfstate
.gitignore
aws/aws_vpc_peering/.terraform/providers/registry.terraform.io/hashicorp/aws/5.26.0/linux_amd64/terraform-provider-aws_v5.26.0_x5
aws/aws_vpc_peering/.terraform/terraform.tfstate
aws/s3/.terraform/providers/registry.terraform.io/hashicorp/aws/5.26.0/linux_amd64/terraform-provider-aws_v5.26.0_x5
aws/terraform-backend/terraform.tfstate
aws/aws_asg/.terraform/modules/modules.json
aws/aws_asg/.terraform/providers/registry.terraform.io/hashicorp/aws/5.26.0/linux_amd64/terraform-provider-aws_v5.26.0_x5
aws/aws_simple/.terraform/modules/modules.json

View File

@@ -16,8 +16,7 @@ sudo chmod 600 /home/greg/.ssh/authorized_keys
sudo chown -R greg:greg /home/greg/.ssh
# Add your public key to authorized_keys
sudo echo "
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCdOF80z0piQEnYzNCu2OGvOJdm7+3wfDuiC+Jzi8VbSC5VW4iJAQXOuDNGLzyqNi6uMjI77xpEL6Xzn29uJiQti6Y/LxhOZwNNIQiGUpFco1wkBYeBFbtgHQxsMLwumrxQGEj2fyCiSrACAPyy/l1fP4mlN7abBGD5aozBrYKxXPS/kfwO5nsWmw27RgTzfHJzie2dUU3ew/kd7td3wEdWrRXq8wNbu+yvAyiog54huUUWmYZwY3QVwXr6R1wsVudawM6BEl45QFq+hdB4t83azHG94XLy2NCAncohdU7zP40nsbvIDyh+4wIKeU90z6TLrXfHUYuBT6/ky7qOFm/Ym1QG4zCDz3jin8Qoa31PGaObzj/zoMJXgOXKcp16W0j9SZAenvnSfuWUEfBR1yBRR0T5Wg5v1vi7KGBTATaz8el802uliL+yZbGtMbNpAPGR5nK5C4yorf8yVYvIgo/LJaWCDND2O1e2mdut1WyRmvIwMnq7PFZT8zAsgGXfhDM= greg@ligma" >> /home/greg/.ssh/authorized_keys
sudo echo "" >> /home/greg/.ssh/authorized_keys
# Set hostname
INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)

View File

@@ -1,15 +1,6 @@
my-terraform-project/
├── main.tf
└── modules/
├── EFS/
│ └── main.tf
├── ELB/
│ └── main.tf
├── EC2/
│ └── main.tf
├── S3/
│ └── main.tf
└── VPC/
└── main.tf
aws_simple/ # root dir
├── vpc/
│ └── subnets/
│ ├── us-east/
│ └── us-west/
├── ec2/

View File

@@ -1,9 +0,0 @@
{
"version": 4,
"terraform_version": "1.6.4",
"serial": 1,
"lineage": "d32d4884-4d57-90bf-bf50-91dba9c4212a",
"outputs": {},
"resources": [],
"check_results": null
}