aws-cloudformation / aws-cloudformation-resource-providers-codeartifact

The CloudFormation Resource Provider Package for the AWS CodeArtifact service
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_CodeArtifact.html
Apache License 2.0
27 stars 7 forks source link

Broken Test For Yishai #42

Open richardhboyd opened 3 years ago

richardhboyd commented 3 years ago

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

PatMyron commented 3 years ago

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