Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resource "aws_instance" "DCOS-master3" {
- ami = "${var.aws_centos_ami}"
- availability_zone = "eu-west-1b"
- instance_type = "t2.medium"
- key_name = "${var.aws_key_name}"
- security_groups = ["${aws_security_group.bastion.id}"]
- associate_public_ip_address = true
- private_ip = "10.0.0.13"
- source_dest_check = false
- subnet_id = "${aws_subnet.eu-west-1b-public.id}"
- tags {
- Name = "master3"
- }
- }
- data "aws_ebs_volume" "ebs_volume" {
- most_recent = true
- filter {
- name = "attachment.instance-id"
- values = ["${aws_instance.DCOS-master3.id}"]
- }
- }
- output "ebs_volume_id" {
- value = "${data.aws_ebs_volume.ebs_volume.id}"
- }
- output "ebs_volume_id" {
- value = "${aws_instance.DCOS-master3.root_block_device.0.volume_id}"
- }
- "Resource 'aws_instance.DCOS-master3' does not have attribute 'root_block_device.0.volume_id'
- "root_block_device.0.volume_id": "vol-xxxxxxxxxxxxxx",
Add Comment
Please, Sign In to add comment