Skip to content

compute optimizer module failing to deploy when using the Terraform deployment #295

@bijalp19

Description

@bijalp19

Hello,
I used this https://github.com/awslabs/cid-data-collection-framework/tree/terraform/data-collection/deploy/terraform to deploy data collection.
The compute optimizer module is failing to deploy with this error -

The following resource(s) failed to create: [RegionalBucketsStackSet]

The cloud trail log shows this error -
"errorCode": "MalformedPolicyDocumentException",
    "errorMessage": "Syntax errors in policy.",
    "requestParameters": {
        "roleName": "csgp-Compute-Optimizer-Replication-us-east-1",
        "policyName": "Replication",
        "policyDocument": "{\"Statement\":[{\"Action\":[\"s3:GetReplicationConfiguration\",\"s3:ListBucket\"],\"Resource\":\"arn:aws:s3:::csgp-cid-data-xxxxxxxxxx.us-east-1\",\"Effect\":\"Allow\"},{\"Action\":[\"s3:GetObjectVersionForReplication\",\"s3:GetObjectVersionAcl\"],\"Resource\":\"arn:aws:s3:::csgp-cid-data-xxxxxxxxxx.us-east-1/*\",\"Effect\":\"Allow\"},{\"Action\":[\"s3:ReplicateObject\",\"s3:ReplicateTags\",\"s3:GetObjectVersionTagging\"],\"Resource\":\"arn:aws:s3:::csgp-cid-data-xxxxxxxxxx/*\",\"Effect\":\"Allow\"},{\"PolicyName\":\"KMS\",\"PolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"kms:GenerateDataKey\"],\"Resource\":[\"*\"],\"Effect\":\"Allow\"}]}}]}"

As this module is failing, the computer optimizer dashboard shows no data available for use.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions