-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial creation of automation for module 2 with Refactor Spaces
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
MonoToMicroRefactorSpaces/MonoToMicroCFRefactorSpaces-foundation.yaml
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,53 @@ | ||
AWSTemplateFormatVersion: 2010-09-09 | ||
Description: AWS Migration Hub Refactor Spaces foundation stack for the Application Modernization Workshop/ Immersion Day | ||
|
||
Parameters: | ||
UniShopVpcId: | ||
Type: AWS::SSM::Parameter::Value<String> | ||
Default: UniShopVpcId | ||
|
||
UniShopBackendDnsName: | ||
Type: AWS::SSM::Parameter::Value<String> | ||
Default: UniShopPublicDnsName | ||
|
||
Resources: | ||
UniShopRefactorSpacesModernizationEnvironment: | ||
Type: AWS::RefactorSpaces::Environment | ||
Properties: | ||
Name: unistore-dev | ||
NetworkFabricType: TRANSIT_GATEWAY | ||
Description: A Refactor Spaces environment for the Unicorn store | ||
|
||
UniShopRefactorSpacesApplication: | ||
Type: AWS::RefactorSpaces::Application | ||
Properties: | ||
Name: unistore | ||
EnvironmentIdentifier: !Ref UniShopRefactorSpacesModernizationEnvironment | ||
VpcId: !Ref UniShopVpcId | ||
ProxyType: API_GATEWAY | ||
ApiGatewayProxy: | ||
EndpointType: REGIONAL | ||
|
||
UniShopLegacyService: | ||
Type: AWS::RefactorSpaces::Service | ||
Properties: | ||
Name: legacy | ||
EnvironmentIdentifier: !Ref UniShopRefactorSpacesModernizationEnvironment | ||
ApplicationIdentifier: !GetAtt UniShopRefactorSpacesApplication.ApplicationIdentifier | ||
EndpointType: URL | ||
VpcId: !Ref UniShopVpcId | ||
UrlEndpoint: | ||
Url: !Ref UniShopBackendDnsName | ||
HealthUrl: !Join [ "", [ !Ref UniShopBackendDnsName, '/actuator/health' ] ] | ||
|
||
UniShopDefaultRoute: | ||
Type: AWS::RefactorSpaces::Route | ||
Properties: | ||
RouteType: DEFAULT | ||
ServiceIdentifier: !GetAtt UniShopLegacyService.ServiceIdentifier | ||
EnvironmentIdentifier: !Ref UniShopRefactorSpacesModernizationEnvironment | ||
ApplicationIdentifier: !GetAtt UniShopRefactorSpacesApplication.ApplicationIdentifier | ||
|
||
Outputs: | ||
UniShopApiGatewayProxyUrl: | ||
Value: !GetAtt UniShopRefactorSpacesApplication.ProxyUrl |