→ sfn print --file sparkleformation/terra_test.rb --debug
[DEBUG]: Loading core provider extensions via `Sfn::ApiProvider::Terraform`
[DEBUG]: Merged compile parameters - {}
{
"provider": {
"aws": {
"region": "${var.aws_region}"
}
},
"variable": {
"aws_region": {
"description": "The AWS region to create things in.",
"default": "us-east-1"
},
"aws_amis": {
"default": {
"us-east-1": "ami-5f709f34",
"us-west-2": "ami-7f675e4f"
}
},
"key_name": {
"description": "Name of the SSH keypair to use in AWS."
}
},
"output": {
"address": {
"value": "${aws_instance.web_instance.private_ip}"
},
"elastic ip": {
"value": "${aws_eip.default_eip.public_ip}"
}
},
"resource": {
"aws_eip": {
"default_eip": {
"instance": "${web_instance.web.id}",
"vpc": true
}
},
"aws_security_group": {
"default_security_group": {
"name": "eip_example",
"description": "Used in terraform",
"ingress": {
"from_port": 22,
"to_port": 22,
"protocol": "tcp",
"cidr_blocks": [
"0.0.0.0/0"
]
}
}
},
"aws_instance": {
"web_instance": {
"instance_type": "t2.micro",
"ami": "${lookup(var.aws_amis, var.aws_region)}",
"key_name": "${var.key_name}",
"security_groups": [
"${aws_security_group.default_security_group.name}"
],
"user_data": "${file(\"userdata.sh\")}",
"tags": {
"Name": "eip-example"
}
}
}
}
}
Last active
November 16, 2016 06:06
-
-
Save chrisroberts/2b3ff5fa9755cf08cfba4f06c39152d2 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment