Note:
file provisioner is used to copy file
we have created one file vim clod
now how to checck its been copied
go to ami and launch image and create instance
vi pro.json
{
"builders": [
{
"type": "amazon-ebs",
"region": "us-east-1",
"access_key": "AUGQ",
"secret_key": "Kurid",
"instance_type": "t2.micro",
"source_ami": "ami-02e136e904f3da870",
"ssh_username": "ec2-user",
"ami_name": "moon-amiii"
}
],
"provisioners": [
{
"type": "file",
"source": "./clod",
"destination": "/tmp/"
}
]
}
Comments
Post a Comment