data source/aws_ssm_document: Returns invalid ARN for AWS-owned SSM documents #19674
Labels
bug
Addresses a defect in current functionality.
service/ssm
Issues and PRs that pertain to the ssm service.
Milestone
AWS-owned SSM automation documents have the ARN structure
arn:<partition>:ssm:us-west-2::automation-definition/<document name>
, for examplearn:aws:ssm:us-west-2::automation-definition/AWS-StartEC2Instance
. Since the API doesn't return an ARN value, the AWS provider generates an ARN using a format valid for user-generated documents.According to AWS documentation one shared SSM documents, the ARN is not required for AWS-owned documents (i.e. those that start with
AWS-
).Update the data source
aws_ssm_document
to return the name for AWS-owned documents.Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource
The text was updated successfully, but these errors were encountered: