내용으로 건너뛰기

Parameter store error in ECS

0

We want to call parameter store values through our code dotnet application.

We are seeing the below error in our ECS container logs. ParameterStoreHelper : Something went wrong ; The service returned an error with Error Code ParameterNotFound and HTTP Body: { "__type": "ParameterNotFound" }

We are using the below code for the functionality.

Dictionary<string, string> values = new();
AmazonSimpleSystemsManagementClient client = new AmazonSimpleSystemsManagementClient(Amazon.RegionEndpoint.USWest2);

var bucketName = client.GetParameterAsync(new GetParameterRequest { Name = "testbucketname", WithDecryption = true }).Result;
values.Add("TestBucketName", bucketName.Parameter.Value);

Could any one help us how we can resolve this issue and call parameter store values in our application

Thanks in advance, Anil Kumar V.

4개 답변
0
수락된 답변

Looks like the app can't find a parameter...? Are you sure parameter is in this region you are calling? Do you app have an permission to access PS? "testbucketname" is the name of the parameter in parameter store right?

답변함 3년 전
0

Hello Luke, thank you for your reply, we have created parameter in the right region. our app has access to parameter store and "testbucketname" is the name of the parameter in parameter store. Please let us know in case if we have missed anything related to configuration.

답변함 3년 전
0

Does your task definition include a proper IAM role definition with permission for ssm:GetParameters for your parameter store?

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠