Closed r-heimann closed 4 days ago
Yup, i get the same.
Interesting to note...
Outputs:
KMSKeyIdGetAtt:
Description: Key ID GetAtt
Value: !GetAtt KMSKey.KeyId
KMSKeyIdGetRef:
Description: Key ID Ref
Value: !Ref KMSKey
KMSKeyArn:
Description: The ID of the KMS key
Value: !GetAtt KMSKey.Arn
KMSKeyArn arn:aws:kms:eu-central-1:00000000000:key/xxxxxx-65cc-4a96-b072-xxxxxxx
KMSKeyIdGetAtt xxxxxxx-65cc-4a96-b072-xxxxxxxxx
KMSKeyIdGetRef xxxxxx-65cc-4a96-b072-xxxxxxxxxxx
seems to resolve correctly in the template itself....
and looking in the corresponding CreateCluster
API call...
{
"requestParameters": {
"clusterName": "Test",
"tags": [
{
"key": "aws:cloudformation:stack-name",
"value": "test"
},
{
"key": "aws:cloudformation:logical-id",
"value": "ECSCluster"
},
{
"key": "aws:cloudformation:stack-id",
"value": "arn:aws:cloudformation:eu-central-1:000000000000:stack/test/xxxxxxx-2c9d-11ef-9597-000000000000"
}
],
"settings": [],
"configuration": {
"managedStorageConfiguration": {
"fargateEphemeralStorageKmsKeyId": "xxxxxxx-65cc-4a96-b072-xxxxxxx"
}
},
"capacityProviders": [
"FARGATE"
],
"defaultCapacityProviderStrategy": []
},
"responseElements": {
"cluster": {
"clusterArn": "arn:aws:ecs:eu-central-1:000000000000:cluster/Test",
"clusterName": "Test",
"configuration": {
"managedStorageConfiguration": {
"fargateEphemeralStorageKmsKeyId": "arn:aws:kms:eu-central-1:000000000000:key/xxxxxxx-65cc-4a96-b072-xxxxxxx"
}
},
"status": "ACTIVE",
"registeredContainerInstancesCount": 0,
"runningTasksCount": 0,
"pendingTasksCount": 0,
"activeServicesCount": 0,
"statistics": [],
"tags": [
{
"key": "aws:cloudformation:stack-name",
"value": "test"
},
{
"key": "aws:cloudformation:stack-id",
"value": "arn:aws:cloudformation:eu-central-1:000000000000:stack/test/xxxxxxx-2c9d-11ef-9597-000000000000"
},
{
"key": "aws:cloudformation:logical-id",
"value": "ECSCluster"
}
],
"settings": [
{
"name": "containerInsights",
"value": "disabled"
}
],
"capacityProviders": [
"FARGATE"
],
"defaultCapacityProviderStrategy": []
},
"clusterCount": 1
}}
it would appear that Cloudformation is sending the correct value (Key id)...but KMS is returning the incorrect value (KMS Arn) in the response!
Created ticket on KMS issue tracker who are responsible for this resource type.
Seems to be fixed.
Name of the resource
AWS::ECS::Cluster
Resource Name
No response
Issue Description
When creating a
AWS::ECS::Cluster
ineu-central-1
usingit will cause a drift:
Property | Change | Expected value | Current value -- | -- | -- | -- Configuration.ManagedStorageConfiguration.FargateEphemeralStorageKmsKeyId | NOT_EQUAL | ["KMSKeyId"] | ["KMSKeyIdArn"] |Expected Behavior
Drift is recognizing the
KMS Key Id Arn
, instead of the Id.Observed Behavior
Drift thinks it wants to see a KMS Key Id.
Test Cases
Other Details
No response