Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resource "aws_instance" "example" {
- ami = "ami-098792953bbd38e18"
- instance_type = "t2.micro"
- }
- resource "aws_ebs_volume" "ebs-volume-1" {
- availability_zone = "eu-west-1a"
- size = 160
- type = "st1"
- tags {
- Name = "more volume"
- }
- }
- resource "aws_volume_attachment" "ebs-volume-1-attachment" {
- device_name = "/dev/sdf"
- volume_id = "${aws_ebs_volume.ebs-volume-1.id}"
- instance_id = "${aws_instance.example.id}"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement