Skip to content

(aws-ec2): Ability to enable "Detailed Monitoring" for EC2 instance #19346

@Dzhuneyt

Description

@Dzhuneyt

Description

The current ec2.Instance() construct does not expose the "monitoring" prop that the underlying CfnInstance does.

Use Case

I want to create EC2 instances with Detailed Monitoring enabled.

Proposed Solution

new ec2.Instance(this, 'Instance', {
   ...
   monitoring: true|false,
   ...
});

Other information

https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-ec2/lib/instance.ts#L371

Acknowledge

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ec2Related to Amazon Elastic Compute Cloudeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions