AWS ParameterStore problem

项目中需要忘S3上保存各种文件,之前一直把key/secret 保存在config文件里。

这种做法的缺陷是在提交代码后会暴露出来,造成不必要的损失跟风险。

使用AWS 的parameterStore 来存储.  嗯。。。有时总忘记在哪里找它,

 

好了,这样还不行,还需要设置EC2 跟 IAM , 然后把相关的key/secret设置到开发机器的环境中。

安装AWS CLI, 在aws power shell 中设置 SharedCredentialsFile 跟 NetSDKCredentialsFile。 如果没有NetSDKCredentialsFile, 通过代码访问parameter store将会报错。

 最后附上参考链接: https://docs.aws.amazon.com/powershell/latest/userguide/specifying-your-aws-credentials.html

原文地址:https://www.cnblogs.com/fengyishou/p/12418355.html