provider "aws" {
access_key = "AKIVCGFUS3ZRJT&YIPSZ4XELP6"
secret_key = "oR8Weobsop/YGTOKXHu6kDymyru"
region = "ap-south-1"
}
resource "aws_instance" "himcloud" {
ami = "ami-0a4a4775bdbc44e58"
instance_type = "t2.micro"
}
10 Years+ Redhat Administration Experience.
provider "aws" {
access_key = "AKIVCGFUS3ZRJT&YIPSZ4XELP6"
secret_key = "oR8Weobsop/YGTOKXHu6kDymyru"
region = "ap-south-1"
}
resource "aws_instance" "himcloud" {
ami = "ami-0a4a4775bdbc44e58"
instance_type = "t2.micro"
}
I’ve used Terraform the same way to spin up EC2, though I usually avoid hardcoding keys in the code. Instead, I rely on environment variables or IAM roles. Have you tried using AWS profiles to keep credentials safer?
ReplyDelete