generated from Hack23/templateopensource
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.yml
57 lines (57 loc) · 3.92 KB
/
app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
AWSTemplateFormatVersion: '2010-09-09'
Description: ResilienceHub Application
Parameters:
StackIrland:
Description: Arn for StackIrland
Type: String
StackFrankfurt:
Description: Arn for StackFrankfurt
Type: String
Resources:
AppPolicy:
Type: AWS::ResilienceHub::ResiliencyPolicy
Properties:
DataLocationConstraint: AnyLocation
Policy:
Software:
RpoInSecs: 300
RtoInSecs: 5400
Hardware:
RpoInSecs: 1
RtoInSecs: 1
AZ:
RpoInSecs: 1
RtoInSecs: 1
Region:
RpoInSecs: 5
RtoInSecs: 3600
PolicyDescription: "Global Mission Critical"
PolicyName: GlobalMissionCritical
Tier: MissionCritical
Application:
Type: AWS::ResilienceHub::App
Properties:
AppAssessmentSchedule: Daily
AppTemplateBody: '{"resources":[{"logicalResourceId":{"identifier":"Lambda","logicalStackName":"StackFrankfurt","resourceGroupName":null},"type":"AWS::Lambda::Function","name":"healthcheckfunction-1"},{"logicalResourceId":{"identifier":"RestApi","logicalStackName":"StackFrankfurt","resourceGroupName":null},"type":"AWS::ApiGateway::RestApi","name":"apigatewayrestapi-1"},{"logicalResourceId":{"identifier":"RestApi","logicalStackName":"StackIrland","resourceGroupName":null},"type":"AWS::ApiGateway::RestApi","name":"apigatewayrestapi"},{"logicalResourceId":{"identifier":"Lambda","logicalStackName":"StackIrland","resourceGroupName":null},"type":"AWS::Lambda::Function","name":"healthcheckfunction"},{"logicalResourceId":{"identifier":"LambdaDynamo","logicalStackName":"StackFrankfurt","resourceGroupName":null},"type":"AWS::Lambda::Function","name":"dynamodbfunction-1"},{"logicalResourceId":{"identifier":"GlobalTable","logicalStackName":"StackIrland","resourceGroupName":null},"type":"AWS::DynamoDB::GlobalTable","name":"dynamodbglobaltable"},{"logicalResourceId":{"identifier":"LambdaDynamo","logicalStackName":"StackIrland","resourceGroupName":null},"type":"AWS::Lambda::Function","name":"dynamodbfunction"}],"appComponents":[{"id":"appcommon","name":"appcommon","type":"AWS::ResilienceHub::AppCommonAppComponent","resourceNames":[]},{"id":"ComputeAppComponent-ApiGatewayRestApi-RestApi","name":"ApiGatewayRestApi-RestApi","type":"AWS::ResilienceHub::ComputeAppComponent","resourceNames":["apigatewayrestapi","apigatewayrestapi-1"]},{"id":"ComputeAppComponent-LambdaFunction-Lambda","name":"LambdaFunction-Lambda-Healthcheck","type":"AWS::ResilienceHub::ComputeAppComponent","resourceNames":["healthcheckfunction","healthcheckfunction-1"]},{"id":"ComputeAppComponent-LambdaFunction-LambdaDynamo","name":"LambdaFunction-Dynamo","type":"AWS::ResilienceHub::ComputeAppComponent","resourceNames":["dynamodbfunction","dynamodbfunction-1"]},{"id":"DatabaseAppComponent-DynamoDBTable-GlobalTable","name":"DatabaseAppComponent-DynamoDBTable-GlobalTable","type":"AWS::ResilienceHub::DatabaseAppComponent","resourceNames":["dynamodbglobaltable"]}],"excludedResources":{"logicalResourceIds":[{"identifier":"AlarmTopic","logicalStackName":"StackIrland"},{"identifier":"DeadLetterTopic","logicalStackName":"StackIrland"},{"identifier":"AlarmTopic","logicalStackName":"StackFrankfurt"},{"identifier":"DeadLetterTopic","logicalStackName":"StackFrankfurt"}]},"version":2.0}'
Description: lambda-vpc
Name: lambda-vpc
ResiliencyPolicyArn: !Ref 'AppPolicy'
ResourceMappings:
- LogicalStackName: 'StackIrland'
MappingType: CfnStack
PhysicalResourceId:
Identifier: !Ref 'StackIrland'
Type: Arn
AwsRegion: eu-west-1
AwsAccountId: !Ref "AWS::AccountId"
- LogicalStackName: 'StackFrankfurt'
MappingType: CfnStack
PhysicalResourceId:
Identifier: !Ref 'StackFrankfurt'
Type: Arn
AwsRegion: eu-central-1
AwsAccountId: !Ref "AWS::AccountId"
Metadata: {}
Outputs:
Application:
Value: !Ref Application