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
AWSTemplateFormatVersion: 2010-09-09 | |
VpcCidr: | |
Type: String | |
Default: 10.192.0.0/16 | |
PublicSubnetCidr: | |
Type: String | |
Default: 10.192.10.0/24 | |
PrivateSubnetCidr: | |
Type: String | |
Default: 10.192.20.0/24 |
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
aws s3api delete-objects \ | |
--bucket ${bucket_name} \ | |
--delete "$(aws s3api list-object-versions \ | |
--bucket "${bucket_name}" \ | |
--output=json \ | |
--query='{Objects: Versions[].{Key:Key,VersionId:VersionId}}')" |
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
- name: Create dev stack | |
run: | | |
aws cloudformation deploy --stack-name feature-$(echo ${GITHUB_REF##*/} | tr -cd '[a-zA-Z0-9-]') \ | |
--template-body file://cloudformation/site-resources.yml \ | |
--parameters ParameterKey=Environment,ParameterValue=Dev | |
--tags Key=environment,Value=dev |
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
import axios, { AxiosRequestConfig } from 'axios'; | |
import jwtDecode from 'jwt-decode'; | |
import AccessToken from '../types/AccessToken'; | |
import AuthData from '../types/AuthData'; | |
import IdToken from '../types/IdToken'; | |
const getAuthData = () : AuthData => | |
<AuthData>JSON.parse(window?.localStorage?.getItem('authData')); | |
const setAuthData = data => |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Parameters: | |
Environment: | |
Type: String | |
Default: Dev | |
Description: Environment identifier | |
Identifier: | |
Type: String | |
Default: StreetlightBlog |
OlderNewer