hashicorp / hashicorp/packer-plugin-amazon

Packer doesn't keep UsageOperation with amazon-ebssurrogate

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
bug builder/amazon
Dominant language
Go
Stars
91
Forks
141
Avg merge
2d 18h
Merged PRs (30d)
3

Description

_This issue was originally opened by @Seb0042 as hashicorp/packer#10513. It was migrated here as a result of the [Packer plugin split](https://github.com/hashicorp/packer/issues/8610#issuecomment-770034737). The original body of the issue is below._


#### Overview of the Issue
Same as the issue https://github.com/hashicorp/packer/issues/4922
Briefly the ami made with packer lost the hourly licensing
#### Reproduction Steps
Use a source image that has RunInstances:0010 with amazon-ebssurrogate
### Packer version
Packer v1.6.6
### Simplified Packer Buildfile

```json
{
"variables":{
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"region": "eu-west-3",
"source_ami": "ami-0ba7c4110ca9bfe0b",
"ssh_username": "ec2-user"
},
"builders": [{
"type": "amazon-ebssurrogate",
"ami_virtualization_type": "hvm",
"region": "{{user `region`}}",
"instance_type": "t2.micro",
"ena_support": true,
"ssh_username": "{{user `ssh_username`}}",
"source_ami": "{{user `source_ami`}}",
"ami_name": "RHEL_8.3lvm_x86_64-{{ timestamp }}",
"ami_description": "Amazon Linux RHEL 8.3 lvm",
"launch_block_device_mappings": [{
"delete_on_termination": true,
"device_name": "/dev/xvdf",
"volume_type": "gp2",
"volume_size": 30
}],
"ami_root_device": {
"source_device_name": "/dev/xvdf",
"device_name": "/dev/xvda",
"delete_on_termination": true,
"volume_size": "30",
"volume_type": "gp2"
}}],
"provisioners": [{
"type": "shell",
"inline": ["my wonderful script"]}]
}
```

### Operating system and Environment details
OS=RHEL 8 or RHEL 7,
ARCH = x86_64

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.