Fix jpg
This commit is contained in:
@ -101,27 +101,27 @@ resource "aws_iam_policy" "ec2_s3_policy" {
|
||||
}
|
||||
}
|
||||
|
||||
# Create AMI
|
||||
resource "aws_ami_from_instance" "ami_snapshot" {
|
||||
name = "ami-snapshot-2025-06-17"
|
||||
source_instance_id = aws_instance.my_first_linux.id
|
||||
snapshot_without_reboot = true
|
||||
|
||||
tags = {
|
||||
Name = "labs"
|
||||
}
|
||||
}
|
||||
|
||||
# Launch new instance from AMI
|
||||
resource "aws_instance" "my_second_linux" {
|
||||
instance_type = "t2.micro"
|
||||
ami = aws_ami_from_instance.ami_snapshot.id
|
||||
security_groups = ["ssh-access-witch"]
|
||||
|
||||
tags = {
|
||||
Name = "labs"
|
||||
}
|
||||
}
|
||||
# # Create AMI
|
||||
# resource "aws_ami_from_instance" "ami_snapshot" {
|
||||
# name = "ami-snapshot-2025-06-17"
|
||||
# source_instance_id = aws_instance.my_first_linux.id
|
||||
# snapshot_without_reboot = true
|
||||
#
|
||||
# tags = {
|
||||
# Name = "labs"
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# # Launch new instance from AMI
|
||||
# resource "aws_instance" "my_second_linux" {
|
||||
# instance_type = "t2.micro"
|
||||
# ami = aws_ami_from_instance.ami_snapshot.id
|
||||
# security_groups = ["ssh-access-witch"]
|
||||
#
|
||||
# tags = {
|
||||
# Name = "labs"
|
||||
# }
|
||||
# }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user