More generally, I would think that the following would work with the 1password extension:
"containerEnv": {
"AWS_ACCESS_KEY_ID": op://Private/AWS/username,
"AWS_SECRET_ACCESS_KEY": op://Private/AWS/credential,
"AWS_DEFAULT_REGION": op://Private/AWS/region
},
but adding that to my devcontainer.json does nothing. If I run 1password: Preview with secrets
, then my AWS secrets are correctly substituted in the preview, but those secrets are not substituted when I re-build my container. I also cannot hover over the op://
links and see references to the secrets, as shown in https://www.reddit.com/r/1Password/comments/vp19zy/introducing_1password_for_vs_code/.