-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from monte-carlo-data/pchawla/mes-361-add-a-bu…
…tton-to-launch-nested-stack-for-aws-networking-agent Move sample into templates to enable quick creation links
- Loading branch information
Showing
4 changed files
with
68 additions
and
71 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Description: Sample template that deploys an agent with a connected VPC by leveraging nested stacks. | ||
Parameters: | ||
CloudAccountId: | ||
Description: > | ||
For deployments on the V2 Platform, use 590183797493. Accounts created after April 24th, 2024, | ||
will automatically be on the V2 platform or newer. If you are using an older version of the platform, | ||
please contact your Monte Carlo representative for the ID. | ||
Type: String | ||
Default: 590183797493 | ||
AllowedValues: [ 190812797848, 799135046351, 682816785079, 637423407294, 590183797493 ] | ||
ConcurrentExecutions: | ||
Default: 20 | ||
Description: The number of concurrent lambda executions for the agent. | ||
MaxValue: 200 | ||
MinValue: 0 | ||
Type: Number | ||
ImageUri: | ||
Default: 590183797493.dkr.ecr.*.amazonaws.com/mcd-agent:latest | ||
Description: > | ||
URI of the Agent container image (ECR Repo). Note that the region automatically maps to where this stack | ||
is deployed in. | ||
Type: String | ||
MemorySize: | ||
Default: 512 | ||
Description: > | ||
The amount of memory (MB) available to the agent at runtime; this value can be any multiple of | ||
1 MB greater than 256MB. | ||
MinValue: 256 | ||
MaxValue: 10240 | ||
Type: Number | ||
Outputs: | ||
FunctionArn: | ||
Description: Agent Function ARN. To be used in registering. | ||
Value: !GetAtt Agent.Outputs.FunctionArn | ||
InvocationRoleArn: | ||
Description: Assumable role ARN. To be used in registering. | ||
Value: !GetAtt Agent.Outputs.InvocationRoleArn | ||
InvocationRoleExternalId: | ||
Description: Assumable role External ID. To be used in registering. | ||
Value: !GetAtt Agent.Outputs.InvocationRoleExternalId | ||
PublicIP: | ||
Description: IP address from which agent resources access the Internet (e.g. for IP whitelisting). | ||
Value: !GetAtt Networking.Outputs.PublicIP | ||
Resources: | ||
Networking: | ||
Type: AWS::CloudFormation::Stack | ||
Properties: | ||
TemplateURL: https://mcd-public-resources.s3.amazonaws.com/cloudformation/basic_vpc.yaml | ||
Agent: | ||
Type: AWS::CloudFormation::Stack | ||
Properties: | ||
TemplateURL: https://mcd-public-resources.s3.amazonaws.com/cloudformation/aws_apollo_agent.yaml | ||
Parameters: | ||
CloudAccountId: !Ref CloudAccountId | ||
ConcurrentExecutions: !Ref ConcurrentExecutions | ||
ExistingVpcId: !GetAtt Networking.Outputs.VpcId | ||
ExistingSubnetIds: !Join [ ',', [ !GetAtt Networking.Outputs.PrivateSubnetAz1, !GetAtt Networking.Outputs.PrivateSubnetAz2 ] ] | ||
ImageUri: !Ref ImageUri | ||
MemorySize: !Ref MemorySize |
This file contains 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
This file contains 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