bottlerocket icon indicating copy to clipboard operation
bottlerocket copied to clipboard

`cargo make ami` does not use environment variable `PUBLISH_AMI_NAME`

Open sumukhballal opened this issue 1 year ago • 0 comments

Platform I'm building on:

AWS aarch64

What I expected to happen:

While creating and registering an AMI, I ran the make AMI command.

cargo make ami -e PUBLISH_AMI_NAME=testing_k8s

I expected it to register the AMI, with the name: testing_k8s. This is also specified here: https://github.com/bottlerocket-os/bottlerocket/blob/develop/PUBLISHING-AWS.md?plain=1#L28

What actually happened:

But it looks like it ignored the provided variable PUBLISH_AMI_NAME and instead registered the AMI with name bottlerocket-aws-k8s-1.24-aarch64-v1.21.0-REDACTED-dirty. It should not ignore this variable and it should register the AMI with the provided variable name.

How to reproduce the problem:

Run the default build of bottlerocket

cargo make

and then create/register an AMI.

cargo make ami -e PUBLISH_AMI_NAME=testing_k8s

sumukhballal avatar Jul 23 '24 18:07 sumukhballal