Merge pull request #7054 from hashicorp/f-update-ebs-example
amazon-ebs update simple example
This commit is contained in:
commit
a1dc3d8a62
|
@ -549,14 +549,22 @@ run:
|
||||||
|
|
||||||
``` json
|
``` json
|
||||||
{
|
{
|
||||||
"type": "amazon-ebs",
|
"variables": {
|
||||||
"access_key": "YOUR KEY HERE",
|
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
|
||||||
"secret_key": "YOUR SECRET KEY HERE",
|
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}"
|
||||||
"region": "us-east-1",
|
},
|
||||||
"source_ami": "ami-fce3c696",
|
"builders": [
|
||||||
"instance_type": "t2.micro",
|
{
|
||||||
"ssh_username": "ubuntu",
|
"type": "amazon-ebs",
|
||||||
"ami_name": "packer-quick-start {{timestamp}}"
|
"access_key": "{{user `aws_access_key`}}",
|
||||||
|
"secret_key": "{{user `aws_secret_key`}}",
|
||||||
|
"region": "us-east-1",
|
||||||
|
"source_ami": "ami-fce3c696",
|
||||||
|
"instance_type": "t2.micro",
|
||||||
|
"ssh_username": "ubuntu",
|
||||||
|
"ami_name": "packer_AWS {{timestamp}}"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue