[dzhang@localhost terraform]$ cat instance.tf provider "aws" { access_key = "my_access_key" secret_key = "my_secret_key" region = "ap-southeast-2" } resource "aws_security_group" "app_server" { name = "app_server" description = "app server security group" vpc_id = "vpc-d808xxxx" ingress { from_port = 22 to_port = 22 protocol = "tcp" cidr_blocks = ["6x.24x.5x.16x/32"] } tags { Name = "APP" } } …
Continue reading Create real-world like ASW security groups using Terraform