Comments (5)
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.
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.
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.
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.
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)
- [Bug]: aws_ecr_repository data source not fetching tags HOT 3
- [Enhancement]: Add support for bootstrapSelfManagedAddons flag in aws_eks_cluster resource HOT 2
- [New Data Source]: aws_cloudwatch_event_rule HOT 1
- [Bug]: aws_ses_event_destination: Provider produced inconsistent result after apply HOT 2
- [Docs]: endpoint_configuration in API Gateway to specify how to configure endpoint_configuration [EDGE, REGIONAL, PRIVATE] HOT 2
- [Bug]: resourceUserPoolUpdate - runtime error: index out of range [0] with length 0 HOT 10
- [Bug]: Error: only alphanumeric characters and hyphens allowed in "name" HOT 5
- Add support for one time schedule deletion in resource aws_scheduler_schedule HOT 2
- [Bug]: status 400 from DescribeUserPoolClient when using data aws_cognito_user_pool_client HOT 3
- [Docs]: `aws_oam_*` resource and data source docs don't have `id` attribute listed HOT 1
- [Bug]: Constant drift with empty tags for framework resources HOT 1
- [Docs]: resource aws_cloudfront_response_headers_policy with argument `remove_headers_config` needs an example for ease of use HOT 1
- [Bug]: Cognito user must be replaced after provider upgrade HOT 3
- [Bug]: Destruction and replacement of aws_cognito_users after migrating to 5.56.0 HOT 3
- [Bug]: 'aws_docdb_cluster_snapshot' Identifier Restriction [Solved by using correct way 'aws_docdb_cluster' - snapshot_identifier] HOT 3
- [Bug]: aws_sns_topic fails to plan if the deployed resource policy references IAM roles which have been deleted or recreated HOT 1
- [Bug]: missing dns_name in aws_fsx_ontap_file_system HOT 1
- [Docs]: resource aws_eks_cluster has an argument bootstrap_cluster_creator_admin_permissions with incorrect default HOT 1
- [Docs]: It was not mentioned that cidr_blocks and security_groups are ORed HOT 1
- [Bug]: The resource in module is created without `default_tags` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-aws.