Open yaroslav-nakonechnikov opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @iaroslav-nakonechnikov 👋 Thank you for taking the time to raise this! Are you able to provide more complete debug logs (redacted as needed)? It looks like the error message has been truncated, and is missing some key details.
@justinretzolk thank for fast answer! yes, i will try.
i'm trying to import contact, and see expected error:
Error: reading AWS SSM Contacts Contact (arn:aws:ssm-contacts:eu-central-1:id:contact/spde): operation error SSM Contacts: GetContact, https response error StatusCode: 400, RequestID: 04d666c5-265f-4cdb-b53a-e37643dc8fbd, AccessDeniedException: User: arn:aws:sts::id:assumed-role/github-runner/1135289d95e44203aee104ccfdc89fdb is not authorized to perform: ssm-contacts:GetContact on resource: arn:aws:ssm-contacts:eu-central-1:id:contact/spde because no identity-based policy allows the ssm-contacts:GetContact action
but when just create - no definition. So maybe it will also help a bit.
additional:
aws_ssmcontacts_contact.spde: Modifying... [id=arn:aws:ssm-contacts:eu-central-1:id:contact/spde]
╷
│ Error: updating tags for SSM Contacts Context (arn:aws:ssm-contacts:eu-central-1:id:contact/spde): tagging resource (arn:aws:ssm-contacts:eu-central-1:id:contact/spde): operation error SSM Contacts: TagResource, https response error StatusCode: 400, RequestID: 1e083bb6-fb4a-43e4-9dfc-34e48fae984e, ValidationException:
│
│ with aws_ssmcontacts_contact.spde,
│ on main.tf line 199, in resource "aws_ssmcontacts_contact" "spde":
│ 199: resource "aws_ssmcontacts_contact" "spde" {
│
╵
Error: Process completed with exit code 1.
no validation after import. so possibly something with tags....
updated main message
@justinretzolk full debug log provided with masking critical info
today i doublechecked and if i add default tags to provider config - it fails. without tags - all being created correct.
Terraform Core Version
1.5.5
AWS Provider Version
5.13.1
Affected Resource(s)
Expected Behavior
aws_ssmcontacts_contact crated with defined alias, display_name and type.
Actual Behavior
resource can't be created, and in logs:
Relevant Error/Panic Output Snippet
Terraform Configuration Files
tfbackend:
providers:
aws provider setup:
Steps to Reproduce
try to create resource aws_ssmincidents_replication_set
Debug Output
Panic Output
No response
Important Factoids
No response
References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssmcontacts_contact
Would you like to implement a fix?
No
debug.txt