Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Resource Type] - [BUG] - AWS::DataZone::DataSource cannot be updated with CloudControl #2205

Open
flostadler opened this issue Dec 2, 2024 · 0 comments
Labels

Comments

@flostadler
Copy link

Name of the resource

AWS::DataZone::DataSource

Resource Name

No response

Issue Description

AWS::DataZone::DataSource resources cannot be updated using CloudControl.
Update requests fail with the following error message:

An error occurred (ValidationException) when calling the UpdateResource operation: Model validation failed (#: required key [DomainIdentifier] not found
#: required key [ProjectIdentifier] not found
#: required key [EnvironmentIdentifier] not found)

Including those properties in the patch document does not work either because they're createOnlyProperties, it yields the following error message:

An error occurred (NotUpdatableException) when calling the UpdateResource operation: Invalid patch update: createOnlyProperties [/properties/EnvironmentIdentifier, /properties/DomainIdentifier, /properties/ProjectIdentifier] cannot be updated
```.

### Expected Behavior

`AWS::DataZone::DataSource` resources can be updated.

### Observed Behavior

CloudControl does not handle the `createOnlyProperties`.

### Test Cases

Create a `AWS::DataZone::DataSource` resource and then issue an arbitrary `update-resource` API call for it (e.g. adding another database).

For example:
```sh
aws cloudcontrol update-resource --type-name AWS::DataZone::DataSource --identifier "dzd_b8pyj689jp5ez4|4uaba1iqcl613k" \
  --patch-document '[
    {
        "op": "add",
        "path": "/Configuration",
        "value": {
            "GlueRunConfiguration": {
                "RelationalFilterConfigurations": [
                    {
                        "DatabaseName": "my-test-db-3"
                    },
                    {
                        "DatabaseName": "my-test-db-4"
                    }
                ]
            }
        }
    }
]'

Other Details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant