if we have to define 3 builders from different services azure, gcp,aws here we can
provisioner will run on all builders
if we want to run on specific builder then we can use only parameter
"only": ["prod-team","test-team"]
{
"builders": [
{
"name": "test-team",
"type": "amazon-ebs",
"access_key": "AUGQ",
"secret_key": "Kaurid",
"region": "us-east-1",
"instance_type": "t2.micro",
"source_ami": "ami-02e136e904f3da870",
"ssh_username": "ec2-user",
"ami_name": "test-team-{{timestamp}}"
},
{
"name": "prod-team",
"type": "amazon-ebs",
"access_key": "AGQ",
"secret_key": "Kfkt1aurid",
"region": "us-east-1",
"instance_type": "t2.micro",
"source_ami": "ami-02e136e904f3da870",
"ssh_username": "ec2-user",
"ami_name": "prod-team-{{timestamp}}"
},
{
"name": "dev-team",
"type": "amazon-ebs",
"access_key": "AKIARUPJBF7JN6BKVUGQ",
"secret_key": "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",
"region": "us-east-1",
"instance_type": "t2.micro",
"source_ami": "ami-02e136e904f3da870",
"ssh_username": "ec2-user",
"ami_name": "dev-team-{{timestamp}}"
}
],
"provisioners": [
{
"type": "shell",
"only": ["dev-team","prod-team"],
"inline":[
"sudo yum install tree"
]
}
]
}
Comments
Post a Comment