aws-cloudformation-resource-providers-codeartifact icon indicating copy to clipboard operation
aws-cloudformation-resource-providers-codeartifact copied to clipboard

Broken Test For Yishai

Open richardhboyd opened this issue 5 years ago • 1 comments
trafficstars

This is the hello world of creating a domain and repo and it doesn't work.

{
  "Resources": {
    "CodeArtifactDomain": {
      "Type": "AWSdevToolsBeta::CodeArtifact::Domain",
      "Properties": {
        "DomainName": "richarddomain"
      }
    },
    "CodeArtifactRepository": {
      "Type": "AWSdevToolsBeta::CodeArtifact::Repository",
      "Properties": {
        "RepositoryName": "richardrepo",
        "DomainName": {
          "Fn::GetAtt": ["CodeArtifactDomain", "DomainName"]
        },
        "PermissionsPolicyDocument": {
          "Version": "2012-10-17",
          "Statement": [
            {
              "Action": "codeartifact:*",
              "Effect": "Allow",
              "Principal": "*",
              "Resource": "*"
            }
          ]
        }
      }
    }
  }
}

CFN throws the following error: Requested attribute DomainName must be a readonly property in schema for AWSdevToolsBeta::CodeArtifact::Domain

richardhboyd avatar Sep 16 '20 20:09 richardhboyd

dependent on expansion of GetAtt beyond readOnlyProperties: https://github.com/aws-cloudformation/aws-cloudformation-coverage-roadmap/issues/68

PatMyron avatar Jan 04 '21 23:01 PatMyron