Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amazon-import not supported? #3

Open
telepath opened this issue Jan 24, 2019 · 0 comments
Open

amazon-import not supported? #3

telepath opened this issue Jan 24, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@telepath
Copy link

I have a build that creates an AMI using the amazon-import post-processor, which does not support encryption.
For this, I'd like to use the ami-copy post-processor to encrypt the imported ami, however the module does not accept that artifact as input:

Build 'file' errored: 1 error(s) occurred:                                                                                                                     
                                                                              
* Post-processor failed: Unexpected artifact type: packer.file
Can only export from Amazon builders       

I'm using the file builder to import an existing ova file, like this:

{
  "builders":
  [{
    "type": "file",
    "source": "files/appliance.ova",
    "target": "output-file/appliance.ova"
  }],
  "post-processors":
  [{
    "type": "amazon-import",
    "s3_bucket_name": "vmimportbucket",
    "ami_name": "appliance-import",
    "license_type": "BYOL"
  },
  {
    "type": "ami-copy",
    "ami_users": "{{ account_id }}",
    "kms_key_id": "{{ kms_key_id }}",
    "encrypt_boot": true,
    "ensure_available": true
  }]
}
@martinbaillie martinbaillie added enhancement New feature or request help wanted Extra attention is needed labels Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants