aws / aws/aws-elastic-beanstalk-cli

IamInstanceProfile option ignored in create / deploy

Open
#98 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
181
Forks
88
PR merge metrics
No merged PRs in 30d

Description

### Description

When using .ebextensions custom configs I provide a value for the property IamInstanceProfile under the aws:autoscaling:launchconfiguration namespace. When calling `eb create` or `eb deploy` this value is ignored and instead uses the default `aws-elasticbeanstalk-ec2-role` role. If I edit the config via `eb config` and set the IamInstanceProfile property to null, it correctly sets the role according to what is in .ebextensions suggesting the config files themselves are fine.

### Steps to reproduce

Any standard setup, with the addition of an .ebextensions config file including the content:

```
option_settings:
aws:autoscaling:launchconfiguration:
IamInstanceProfile: name-of-an-existing-profile
```

Run `eb create` with usual params, making sure no `-ip` flag is provided.

### Expected result

Would expect the environment to be created or updated with the value existing in the relevant namespace option.

### Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

1. OS: Amazon Linux 2
2. EBCLI version: 3.20.2

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the shown .ebextensions option_settings entry, then compare the option handling in eb create, eb deploy, and eb config when no -ip flag is supplied. Done means the existing IamInstanceProfile value is honored during create and deploy, with regression coverage added if the relevant test entry point is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.