Note:
go to n.varginia region
create roles
ec2
admin access
write name packer
create
=======================================
now go to Mumbai region where instance is running
actions
security
modify ami
select packer
save
we don't need to define access or secret key
vim moon.json
{
"builders": [
{
"type": "amazon-ebs",
"region": "us-east-1",
"instance_type": "t2.micro",
"source_ami": "ami-02e136e904f3da870",
"ssh_username": "ec2-user",
"ami_name": "moon-amiii"
}
]
}
Comments
Post a Comment