iann0036 / AWSConsoleRecorder

Records actions made in the AWS Management Console and outputs the equivalent CLI/SDK commands and CloudFormation/Terraform templates.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for MSK

sumitag opened this issue · comments

Is your feature request related to a problem? Please describe.
I would like to capture the Terraform resource requests for creating a MSK cluster

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
Capture the browser network traffic and grab the JSON

Additional context
JSON:

{
    "brokerNodeGroupInfo": {
        "clientSubnets": [
            "subnet-xxxxxxxxxxxxxxxxx",
            "subnet-xxxxxxxxxxxxxxxxx"
        ],
        "instanceType": "kafka.t3.small",
        "storageInfo": {
            "ebsStorageInfo": {
                "volumeSize": 30
            }
        },
        "securityGroups": [
            "sg-xxxxxxxxxxxxxxx"
        ]
    },
    "clusterName": "msk-tst",
    "encryptionInfo": {
        "encryptionInTransit": {
            "clientBroker": "TLS",
            "inCluster": true
        }
    },
    "kafkaVersion": "2.2.1",
    "numberOfBrokerNodes": 2,
    "enhancedMonitoring": "PER_TOPIC_PER_BROKER",
    "tags": {},
    "openMonitoring": {
        "prometheus": {
            "jmxExporter": {
                "enabledInBroker": false
            },
            "nodeExporter": {
                "enabledInBroker": false
            }
        }
    },
    "loggingInfo": {
        "brokerLogs": {
            "cloudWatchLogs": {
                "enabled": true,
                "logGroup": "msk-tst"
            },
            "firehose": {
                "enabled": false,
                "deliveryStream": ""
            },
            "s3": {
                "enabled": false,
                "bucket": "",
                "prefix": ""
            }
        }
    }
}

Apologies, I have very little time to add support in Console Recorder right now.

I'll happily review and merge pull requests for support if you add the information. Most of the SDK support uses the generator, however the CloudFormation / Terraform support is manual.

Alternatively, Former2 is maintained a bit better.