-
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 #1 from kernwig/part3/amplify-setup
Part 3.1 - Add Amplify to project
- Loading branch information
Showing
15 changed files
with
550 additions
and
941 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,17 @@ | ||
{ | ||
"projectName": "sqac-amplify", | ||
"version": "2.0", | ||
"frontend": "javascript", | ||
"javascript": { | ||
"framework": "angular", | ||
"config": { | ||
"SourceDir": "src", | ||
"DistributionDir": "dist", | ||
"BuildCommand": "npm run-script build", | ||
"StartCommand": "npm run-script start" | ||
} | ||
}, | ||
"providers": [ | ||
"awscloudformation" | ||
] | ||
} |
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,8 @@ | ||
{ | ||
"hosting": { | ||
"S3AndCloudFront": { | ||
"service": "S3AndCloudFront", | ||
"providerPlugin": "awscloudformation" | ||
} | ||
} | ||
} |
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,3 @@ | ||
{ | ||
"bucketName": "sqac-amplify-20190817123020-hostingbucket" | ||
} |
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,113 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "Hosting resource stack creation using Amplify CLI", | ||
"Parameters": { | ||
"env": { | ||
"Type": "String" | ||
}, | ||
"bucketName": { | ||
"Type": "String" | ||
} | ||
}, | ||
"Conditions": { | ||
"ShouldNotCreateEnvResources": { | ||
"Fn::Equals": [ | ||
{ | ||
"Ref": "env" | ||
}, | ||
"NONE" | ||
] | ||
} | ||
}, | ||
"Resources": { | ||
"S3Bucket": { | ||
"Type": "AWS::S3::Bucket", | ||
"DeletionPolicy": "Retain", | ||
"Properties": { | ||
"BucketName": { | ||
"Fn::If": [ | ||
"ShouldNotCreateEnvResources", | ||
{ | ||
"Ref": "bucketName" | ||
}, | ||
{ | ||
"Fn::Join": [ | ||
"", | ||
[ | ||
{ | ||
"Ref": "bucketName" | ||
}, | ||
"-", | ||
{ | ||
"Ref": "env" | ||
} | ||
] | ||
] | ||
} | ||
] | ||
}, | ||
"AccessControl": "Private", | ||
"WebsiteConfiguration": { | ||
"IndexDocument": "index.html", | ||
"ErrorDocument": "index.html" | ||
}, | ||
"CorsConfiguration": { | ||
"CorsRules": [ | ||
{ | ||
"AllowedHeaders": [ | ||
"Authorization", | ||
"Content-Length" | ||
], | ||
"AllowedMethods": [ | ||
"GET" | ||
], | ||
"AllowedOrigins": [ | ||
"*" | ||
], | ||
"MaxAge": 3000 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"Outputs": { | ||
"Region": { | ||
"Value": { | ||
"Ref": "AWS::Region" | ||
} | ||
}, | ||
"HostingBucketName": { | ||
"Description": "Hosting bucket name", | ||
"Value": { | ||
"Ref": "S3Bucket" | ||
} | ||
}, | ||
"WebsiteURL": { | ||
"Value": { | ||
"Fn::GetAtt": [ | ||
"S3Bucket", | ||
"WebsiteURL" | ||
] | ||
}, | ||
"Description": "URL for website hosted on S3" | ||
}, | ||
"S3BucketSecureURL": { | ||
"Value": { | ||
"Fn::Join": [ | ||
"", | ||
[ | ||
"https://", | ||
{ | ||
"Fn::GetAtt": [ | ||
"S3Bucket", | ||
"DomainName" | ||
] | ||
} | ||
] | ||
] | ||
}, | ||
"Description": "Name of S3 bucket to hold website content" | ||
} | ||
} | ||
} |
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,14 @@ | ||
{ | ||
"dev": { | ||
"awscloudformation": { | ||
"AuthRoleName": "sqac-amplify-dev-20190817121515-authRole", | ||
"UnauthRoleArn": "arn:aws:iam::669223130284:role/sqac-amplify-dev-20190817121515-unauthRole", | ||
"AuthRoleArn": "arn:aws:iam::669223130284:role/sqac-amplify-dev-20190817121515-authRole", | ||
"Region": "us-west-2", | ||
"DeploymentBucketName": "sqac-amplify-dev-20190817121515-deployment", | ||
"UnauthRoleName": "sqac-amplify-dev-20190817121515-unauthRole", | ||
"StackName": "sqac-amplify-dev-20190817121515", | ||
"StackId": "arn:aws:cloudformation:us-west-2:669223130284:stack/sqac-amplify-dev-20190817121515/5856a400-c123-11e9-8d92-021aeadbff90" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.