NEW: first commit

This commit is contained in:
xpk
2020-08-02 19:08:53 +08:00
commit 50cb3acfbc
14 changed files with 249 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
resource "aws_instance" "web" {
ami = "ami-49bbfa38"
instance_type = "t3.micro"
key_name = "kfong-aws"
vpc_security_group_ids = ["sg-053612d40f966eec7"]
subnet_id = "subnet-0a4edc273558afaab"
associate_public_ip_address = true
iam_instance_profile = "AmazonSSMRoleForInstancesQuickSetup"
tags = {
Name = "kf-ssm-test"
ssm-enabled = "yes"
}
}
+10
View File
@@ -0,0 +1,10 @@
variable "aws_access_key" {}
variable "aws_secret_key" {}
variable "aws_region" {}
provider "aws" {
access_key = var.aws_access_key
secret_key = var.aws_secret_key
region = var.aws_region
version = ">= 2.28.1"
}