Giter VIP home page Giter VIP logo

Comments (5)

ewbankkit avatar ewbankkit commented on June 29, 2024 1

I can reproduce this with an enhanced acceptance test:

% make testacc TESTARGS='-run=TestAccSSMParameter_updateValue' PKG=ssm
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.2 test ./internal/service/ssm/... -v -count 1 -parallel 20  -run=TestAccSSMParameter_updateValue -timeout 360m
=== RUN   TestAccSSMParameter_updateValue
=== PAUSE TestAccSSMParameter_updateValue
=== CONT  TestAccSSMParameter_updateValue
    parameter_test.go:98: Step 5/5 error running import: exit status 1
        
        Error: Cannot import non-existent remote object
        
        While attempting to import an existing object to "aws_ssm_parameter.test",
        the provider detected that no object exists with the given id. Only
        pre-existing objects can be imported; check that the id is correct and that
        it is associated with the provider's configured region or endpoint, or use
        "terraform apply" to create a new remote object for this resource.
        
--- FAIL: TestAccSSMParameter_updateValue (40.39s)
FAIL
FAIL	github.com/hashicorp/terraform-provider-aws/internal/service/ssm	45.366s
FAIL
make: *** [testacc] Error 1

Relates #37481.

from terraform-provider-aws.

github-actions avatar github-actions commented on June 29, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

from terraform-provider-aws.

stefanfreitag avatar stefanfreitag commented on June 29, 2024

I was comparing log files on TRACE level for the provider versions 5.49.0 and 5.52.0 (the issue exists in provider versions >= 5.50.0).

There was one difference in the requests send to AWS:

  • in v5.49.0 the array of ParameterFilters looks like

    {"ParameterFilters":[{"Key":"Name","Option":"Equals","Values":["<name of the SSM parameter>"]}]}
  • in v5.50.0 the array changes to

     {"ParameterFilters":[{"Key":"Name","Option":"Equals","Values":["<name of the SSM parameter>:<version>"]}]}

    So the version of the parameter is appended to the name of the parameter. In the original description of the issue this can be found as http.request.body="{"ParameterFilters":[{"Key":"Name","Option":"Equals","Values":["my-test-param:1"]}]}

I did try out the impact of that difference using AWS CLI:

  • Returns parameter details as expected
    aws ssm describe-parameters --parameter-filters "Key=Name, Option=Equals,Values=<name of the SSM parameter>"
  • Returns empty array
    aws ssm describe-parameters --parameter-filters "Key=Name, Option=Equals,Values=<name of the SSM parameter>:<version>"

Maybe this helps to find the cause of the issue.

from terraform-provider-aws.

github-actions avatar github-actions commented on June 29, 2024

Warning

This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

from terraform-provider-aws.

github-actions avatar github-actions commented on June 29, 2024

This functionality has been released in v5.53.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

from terraform-provider-aws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.