stormcorgi / iac-learn

Learning Infrastructure as a Code
0 stars 0 forks source link

Execute First terraform import #5

Closed stormcorgi closed 1 year ago

stormcorgi commented 1 year ago

execute terraform import <resource>.tf and see current AWS information. Then write those informations into codes.

"That's one small step for man, one giant leap for SRE Engineer."

stormcorgi commented 1 year ago

terraform import aws_vpc.mastodon <vpc-ID> -> aws command not installed, and no valid credentials exists :(

stormcorgi commented 1 year ago

Terraform importで既存のAWS環境を取り込む https://zoo200.net/terraform-import/

Terraformのきほんと応用 https://zenn.dev/sway/articles/terraform_index_list

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#import

stormcorgi commented 1 year ago

It's already finished.