mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
17 lines
315 B
HCL
17 lines
315 B
HCL
provider "aws" {
|
|
access_key = "a"
|
|
secret_key = "b"
|
|
region = "us-east-1"
|
|
}
|
|
|
|
resource "aws_instance" "foo" {
|
|
ami = "ami-foo"
|
|
instance_type = "t2.micro"
|
|
security_groups = "${aws_security_group.foo.name}"
|
|
}
|
|
|
|
resource "aws_security_group" "foo" {
|
|
name = "foobar"
|
|
description = "foobar"
|
|
}
|