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
0
Accepted Answer

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 9 months ago
profile picture
EXPERT
reviewed a month 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.

profile picture
EXPERT
answered a year 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.

profile picture
answered 10 months 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.

profile picture
answered 10 months ago
0

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

profile picture
answered 9 months 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.

Guidelines for Answering Questions