This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import cfnresponse | |
| import boto3 | |
| from botocore.exceptions import ClientError | |
| client = boto3.client("logs") | |
| def PutPolicy(arn,policyname): | |
| response = client.put_resource_policy( | |
| policyName=policyname, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Parameters: | |
| InstanceCount: | |
| Description: Number of EC2 instances (must be between 1 and 3). | |
| Type: Number | |
| Default: 1 | |
| MinValue: 1 | |
| MaxValue: 3 | |
| ConstraintDescription: Must be a number between 1 and 3. | |
| Description: launch EC2 instances. | |
| InstanceType: |
OlderNewer