Skip to content

Code Catalyst Dev environment removes cli configuration each time it restarts

1

I want to be able to access AWS resources from the CLI of code catalyst. I can configure my CLI ( using SSO ), in the normal way and get access to my my resources as needed.

The configuration only remains for the duration of that session, and if i restart it later it has gone..

Is there a way to keep CLI configurations?

5 Answers
1

Hi Andrew,

We have addressed the reported issue. Now, when you restart your Dev environment, the config file should persist. Could you please try it and let us know if you encounter any further problems? Your feedback is appreciated!

AWS
EXPERT

answered 3 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

0

Am I correct that you have the settings described in this document?
https://docs.aws.amazon.com/codecatalyst/latest/userguide/set-up-cli.html

Since we use SSO, I thought it was inevitable that the session would be cut off after a reboot.

EXPERT

answered 3 years ago

0

Andrew - I think you should be able to update the devfile.yaml to include your SSO configuration - as you know, the dev environments are ephemeral and only the stuff in the devfile is persisted.

answered 3 years ago

0

That is an interesting idea. I had'nt contemplated doing that. It looks like with a little bit of work with setting up a command and events, i could have it copy my configuration to ~/.aws/config each time it starts up.

I have however discussed this with aws recently and its a known issue, that they are working to resolve. but this is a good work aound in the mean time.

answered 3 years ago

0

Thanks, i tested this and it works really nicely thanks. These little improvements have big impacts on useablity!

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.