Created
June 14, 2020 20:28
-
-
Save rohitg00/a18edacc952b5dba71bae1390608215f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Creating EBS Snapshot | |
resource "aws_ebs_snapshot" "ebs_snapshot" { | |
volume_id = "${aws_ebs_volume.web-vol.id}" | |
description = "Snapshot of our EBS volume" | |
tags = { | |
env = "Production" | |
} | |
depends_on = [ | |
aws_volume_attachment.ebs_att | |
] | |
} | |
# public ip | |
output "IP_of_inst" { | |
value = aws_instance.web.public_ip | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment