Skip to content

Instantly share code, notes, and snippets.

@rohitg00
Created June 14, 2020 20:28
Show Gist options
  • Save rohitg00/a18edacc952b5dba71bae1390608215f to your computer and use it in GitHub Desktop.
Save rohitg00/a18edacc952b5dba71bae1390608215f to your computer and use it in GitHub Desktop.
//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