aws-cloudformation / cloudformation-coverage-roadmap

The AWS CloudFormation Public Coverage Roadmap
https://aws.amazon.com/cloudformation/
Creative Commons Attribution Share Alike 4.0 International
1.1k stars 54 forks source link

Timestream for InfluxDB is missing CloudFormation support #1968

Closed sentros closed 2 months ago

sentros commented 6 months ago

Name of the resource

AWS::Timestream::Database

Resource name

No response

Description

It's now possible to select a different engine for a timestream database in the aws console. The previous engine is now called LiveAnalytics and a new engine was added called InfluxDB. Cloudformation has no support for the InfluxDB engine or for its configuration options.

Other Details

https://aws.amazon.com/blogs/aws/run-and-manage-open-source-influxdb-databases-with-amazon-timestream/ https://docs.aws.amazon.com/timestream/latest/developerguide/timestream-for-influx-configuring.html#timestream-for-influx-configuring-create-db-settings https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-timestream-database.html

sentros commented 6 months ago

Example of a cloudformation configuration could be as follows:

TimestreamInfluxDB:
  Type: 'AWS::Timestream::Database'
  Properties:
    DatabaseName: db-name-example
    Engine: influxdb

    Username: example-username
    Password: example-password
    OrganizationName: example-org
    BucketName: example-bucket

    DBInstanceClass: db.influx.medium
    StorageType: included-3000
    AllocatedStorage: 200
    MultiAZ: true

    DBSubnetGroupName: !Ref DBSubnetGroupName
    VPCSecurityGroups:
      - !GetAtt TimestreamInfluxDBSG.GroupId
    PubliclyAccessible: false

    DBParameterGroupName: !Ref TimestreamInfluxDBParameterGroup
    S3LogsLocation: !Ref TimestreamInfluxDBBucket

    Tags:
      - Key: Foo
        Value: 'bar'

TimestreamInfluxDBParameterGroup:
  Type: 'AWS::Timestream::DBParameterGroup'
  Properties:
    DBParameterGroupName: example-name
    Description: example-description
    Parameters:
      flux-log-enabled: TRUE
      log-level: error
    Tags:
      - Key: Foo
        Value: 'bar'
andrewyhwang commented 2 months ago

Timestream for InfluxDB is now supported and this issue can now be closed: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-timestream-influxdbinstance.html