CloudWatch RUM in the AWS UI console has a field for "Application domain" and a separate checkbox for "Include sub domains".
However, there is no corresponding boolean field in the CDK class, CfnAppMonitor, only a domain
string.
How do I check that box without using the AWS UI if my infra is managed as CDK code?
CloudWatch RUM in the AWS UI console has a field for "Application domain" and a separate checkbox for "Include sub domains".
However, there is no corresponding boolean field in the CDK class, CfnAppMonitor, only a domain
string.
How do I check that box without using the AWS UI if my infra is managed as CDK code?
Share Improve this question asked yesterday AntrikshyAntrikshy 3,1065 gold badges37 silver badges71 bronze badges1 Answer
Reset to default 0While it's not obvious in documentation, the domain
field in the CDK class accepts wildcards. If you set it to *.anyothersubdomain.example, the app monitor created in AWS will have its properties set like this:
- Application domain: anyothersubdomain.example
- Include sub domains: [checked]