Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat ~/.aws/credentials
- [packertest]
- aws_access_key_id = XXX
- aws_secret_access_key = XXX
- $ aws --profile packertest ec2 describe-availability-zones
- {
- "AvailabilityZones": [
- {
- "State": "available",
- "RegionName": "us-east-1",
- ...
- $ cat profile.json
- {
- "builders": [
- {
- "type": "amazon-ebs",
- "profile": "packertest",
- "region": "us-east-1",
- "vpc_id": "vpc-XXXX",
- "subnet_id": "subnet-XXXX",
- "source_ami": "ami-XXXX",
- "instance_type": "t2.medium",
- "ssh_username": "centos",
- "ssh_pty": true,
- "ssh_private_ip": true,
- "ami_name": "profiletest"
- }
- ]
- }$
- $
- $ PACKER_LOG=1 packer build profile.json
- 2017/05/15 17:22:29 [INFO] Packer version: 1.0.0
- 2017/05/15 17:22:29 Packer Target OS/Arch: darwin amd64
- 2017/05/15 17:22:29 Built with Go Version: go1.8.1
- 2017/05/15 17:22:29 Detected home directory from env var: /Users/12345
- 2017/05/15 17:22:29 Using internal plugin for amazon-ebssurrogate
- 2017/05/15 17:22:29 Using internal plugin for amazon-instance
- 2017/05/15 17:22:29 Using internal plugin for cloudstack
- 2017/05/15 17:22:29 Using internal plugin for file
- 2017/05/15 17:22:29 Using internal plugin for amazon-ebsvolume
- 2017/05/15 17:22:29 Using internal plugin for googlecompute
- 2017/05/15 17:22:29 Using internal plugin for null
- 2017/05/15 17:22:29 Using internal plugin for profitbricks
- 2017/05/15 17:22:29 Using internal plugin for vmware-iso
- 2017/05/15 17:22:29 Using internal plugin for virtualbox-ovf
- 2017/05/15 17:22:29 Using internal plugin for vmware-vmx
- 2017/05/15 17:22:29 Using internal plugin for amazon-ebs
- 2017/05/15 17:22:29 Using internal plugin for digitalocean
- 2017/05/15 17:22:29 Using internal plugin for hyperv-iso
- 2017/05/15 17:22:29 Using internal plugin for parallels-iso
- 2017/05/15 17:22:29 Using internal plugin for qemu
- 2017/05/15 17:22:29 Using internal plugin for parallels-pvm
- 2017/05/15 17:22:29 Using internal plugin for triton
- 2017/05/15 17:22:29 Using internal plugin for virtualbox-iso
- 2017/05/15 17:22:29 Using internal plugin for amazon-chroot
- 2017/05/15 17:22:29 Using internal plugin for azure-arm
- 2017/05/15 17:22:29 Using internal plugin for docker
- 2017/05/15 17:22:29 Using internal plugin for oneandone
- 2017/05/15 17:22:29 Using internal plugin for openstack
- 2017/05/15 17:22:29 Using internal plugin for salt-masterless
- 2017/05/15 17:22:29 Using internal plugin for shell
- 2017/05/15 17:22:29 Using internal plugin for shell-local
- 2017/05/15 17:22:29 Using internal plugin for ansible-local
- 2017/05/15 17:22:29 Using internal plugin for chef-solo
- 2017/05/15 17:22:29 Using internal plugin for file
- 2017/05/15 17:22:29 Using internal plugin for windows-shell
- 2017/05/15 17:22:29 Using internal plugin for windows-restart
- 2017/05/15 17:22:29 Using internal plugin for ansible
- 2017/05/15 17:22:29 Using internal plugin for converge
- 2017/05/15 17:22:29 Using internal plugin for puppet-masterless
- 2017/05/15 17:22:29 Using internal plugin for chef-client
- 2017/05/15 17:22:29 Using internal plugin for powershell
- 2017/05/15 17:22:29 Using internal plugin for puppet-server
- 2017/05/15 17:22:29 Using internal plugin for compress
- 2017/05/15 17:22:29 Using internal plugin for googlecompute-export
- 2017/05/15 17:22:29 Using internal plugin for amazon-import
- 2017/05/15 17:22:29 Using internal plugin for shell-local
- 2017/05/15 17:22:29 Using internal plugin for vsphere
- 2017/05/15 17:22:29 Using internal plugin for vagrant
- 2017/05/15 17:22:29 Using internal plugin for artifice
- 2017/05/15 17:22:29 Using internal plugin for docker-import
- 2017/05/15 17:22:29 Using internal plugin for docker-push
- 2017/05/15 17:22:29 Using internal plugin for docker-save
- 2017/05/15 17:22:29 Using internal plugin for vagrant-cloud
- 2017/05/15 17:22:29 Using internal plugin for atlas
- 2017/05/15 17:22:29 Using internal plugin for checksum
- 2017/05/15 17:22:29 Using internal plugin for docker-tag
- 2017/05/15 17:22:29 Using internal plugin for manifest
- 2017/05/15 17:22:29 Detected home directory from env var: /Users/12345
- 2017/05/15 17:22:29 Attempting to open config file: /Users/12345/.packerconfig
- 2017/05/15 17:22:29 [WARN] Config file doesn't exist: /Users/12345/.packerconfig
- 2017/05/15 17:22:29 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[cloudstack:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack null:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null profitbricks:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks virtualbox-ovf:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf digitalocean:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean qemu:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu virtualbox-iso:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso amazon-ebssurrogate:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate file:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file openstack:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack azure-arm:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm docker:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker vmware-iso:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso vmware-vmx:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx amazon-ebs:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs parallels-iso:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso parallels-pvm:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm amazon-instance:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance amazon-ebsvolume:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume triton:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton amazon-chroot:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot oneandone:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone googlecompute:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute hyperv-iso:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso] PostProcessors:map[googlecompute-export:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export manifest:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest amazon-import:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import vsphere:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere docker-import:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-save:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save vagrant-cloud:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud compress:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress atlas:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas checksum:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum shell-local:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vagrant:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant artifice:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice docker-push:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-tag:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag] Provisioners:map[shell-local:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local windows-shell:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell chef-client:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client puppet-server:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server salt-masterless:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless ansible-local:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local chef-solo:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo converge:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge powershell:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell shell:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell file:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file windows-restart:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart puppet-masterless:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless ansible:/usr/local/Cellar/packer/1.0.0/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible]}
- 2017/05/15 17:22:29 Setting cache directory: /Users/12345/git/np-infra/ce-base-nodeploy/packer/packer_cache
- 2017/05/15 17:22:29 Detected home directory from env var: /Users/12345
- 2017/05/15 17:22:29 Loading builder: amazon-ebs
- 2017/05/15 17:22:29 Plugin could not be found. Checking same directory as executable.
- 2017/05/15 17:22:29 Current exe path: /usr/local/Cellar/packer/1.0.0/bin/packer
- 2017/05/15 17:22:29 Creating plugin client for path: /usr/local/Cellar/packer/1.0.0/bin/packer
- 2017/05/15 17:22:29 Starting plugin: /usr/local/Cellar/packer/1.0.0/bin/packer []string{"/usr/local/Cellar/packer/1.0.0/bin/packer", "plugin", "packer-builder-amazon-ebs"}
- 2017/05/15 17:22:29 Waiting for RPC address for: /usr/local/Cellar/packer/1.0.0/bin/packer
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 [INFO] Packer version: 1.0.0
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Packer Target OS/Arch: darwin amd64
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Built with Go Version: go1.8.1
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Detected home directory from env var: /Users/12345
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Attempting to open config file: /Users/12345/.packerconfig
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 [WARN] Config file doesn't exist: /Users/12345/.packerconfig
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Setting cache directory: /Users/12345/git/np-infra/ce-base-nodeploy/packer/packer_cache
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Detected home directory from env var: /Users/12345
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 args: []string{"packer-builder-amazon-ebs"}
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Plugin minimum port: 10000
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Plugin maximum port: 25000
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Plugin address: unix /var/folders/kh/w11nblhx105d1w928r163pp0_3h46n/T/packer-plugin099279162
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Waiting for connection...
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Serving a plugin connection...
- 2017/05/15 17:22:29 ui: amazon-ebs output will be in this color.
- 2017/05/15 17:22:29 ui:
- 2017/05/15 17:22:29 Build debug mode: false
- 2017/05/15 17:22:29 Force build: false
- 2017/05/15 17:22:29 On error:
- 2017/05/15 17:22:29 Preparing build: amazon-ebs
- amazon-ebs output will be in this color.
- 2017/05/15 17:22:29 packer: 2017/05/15 17:22:29 Config: {PackerConfig:{PackerBuildName:amazon-ebs PackerBuilderType:amazon-ebs PackerDebug:false PackerForce:false PackerOnError: PackerUserVars:map[]} AccessConfig:{AccessKey: SecretKey: RawRegion:us-east-1 SkipValidation:false Token: ProfileName:packertest} AMIConfig:{AMIName:profiletest AMIDescription: AMIVirtType: AMIUsers:[] AMIGroups:[] AMIProductCodes:[] AMIRegions:[] AMISkipRegionValidation:false AMITags:map[] AMIEnhancedNetworking:false AMIForceDeregister:false AMIForceDeleteSnapshot:false AMIEncryptBootVolume:false AMIKmsKeyId: SnapshotTags:map[] SnapshotUsers:[] SnapshotGroups:[]} BlockDevices:{AMIBlockDevices:{AMIMappings:[]} LaunchBlockDevices:{LaunchMappings:[]}} RunConfig:{AssociatePublicIpAddress:false AvailabilityZone: EbsOptimized:false IamInstanceProfile: InstanceType:t2.medium RunTags:map[] SourceAmi:ami-XXXX SourceAmiFilter:{Filters:map[] Owners:[] MostRecent:false} SpotPrice: SpotPriceAutoProduct: DisableStopInstance:false SecurityGroupId: SecurityGroupIds:[] SubnetId:subnet-XXXX TemporaryKeyPairName:packer_591a1c15-b327-a4c9-c92e-2fcad535fbd9 UserData: UserDataFile: WindowsPasswordTimeout:20m0s VpcId:vpc-XXXX InstanceInitiatedShutdownBehavior:stop Comm:{Type:ssh SSHHost: SSHPort:22 SSHUsername:centos SSHPassword: SSHPrivateKey: SSHPty:true SSHTimeout:5m0s SSHAgentAuth:false SSHDisableAgent:false SSHHandshakeAttempts:10 SSHBastionHost: SSHBastionPort:0 SSHBastionUsername: SSHBastionPassword: SSHBastionPrivateKey: SSHFileTransferMethod:scp WinRMUser: WinRMPassword: WinRMHost: WinRMPort:0 WinRMTimeout:0s WinRMUseSSL:false WinRMInsecure:false WinRMTransportDecorator:<nil>} SSHKeyPairName: SSHPrivateIp:true} VolumeRunTags:map[] ctx:{Data:<nil> Funcs:map[clean_ami_name:0x173b950] UserVariables:map[] EnableEnv:false BuildName:amazon-ebs BuildType:amazon-ebs TemplatePath:/Users/12345/git/np-infra/ce-base-nodeploy/packer/profile.json}}
- 2017/05/15 17:22:29 Waiting on builds to complete...
- 2017/05/15 17:22:29 Starting build run: amazon-ebs
- 2017/05/15 17:22:29 Running builder: amazon-ebs
- 2017/05/15 17:22:29 ui error: Build 'amazon-ebs' errored: error when getting section: section 'profile packertest' not exists
- 2017/05/15 17:22:29 Builds completed. Waiting on interrupt barrier...
- 2017/05/15 17:22:29 machine readable: error-count []string{"1"}
- 2017/05/15 17:22:29 ui error:
- ==> Some builds didn't complete successfully and had errors:
- 2017/05/15 17:22:29 machine readable: amazon-ebs,error []string{"error when getting section: section 'profile packertest' not exists"}
- 2017/05/15 17:22:29 ui error: --> amazon-ebs: error when getting section: section 'profile packertest' not exists
- 2017/05/15 17:22:29 ui:
- ==> Builds finished but no artifacts were created.
- 2017/05/15 17:22:29 waiting for all plugin processes to complete...
- Build 'amazon-ebs' errored: error when getting section: section 'profile packertest' not exists
- ==> Some builds didn't complete successfully and had errors:
- --> amazon-ebs: error when getting section: section 'profile packertest' not exists
- ==> Builds finished but no artifacts were created.
- 2017/05/15 17:22:29 /usr/local/Cellar/packer/1.0.0/bin/packer: plugin process exited
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement