Skip to content

Commit 6c43612

Browse files
authored
Merge pull request #14 from y-temp4/change-stage
ALIS-3359: Change stage name
2 parents 3b52ebf + c9835d0 commit 6c43612

File tree

4 files changed

+3
-66
lines changed

4 files changed

+3
-66
lines changed

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,3 @@ $ aws cloudformation create-stack --stack-name <スタック名> --template-url
101101
```bash
102102
$ aws cloudformation update-stack --stack-name <スタック名> --template-url https://s3-ap-northeast-1.amazonaws.com/<バケット名>/<tag名>/cloudformation-template-update-stack.json --capabilities '["CAPABILITY_IAM","CAPABILITY_NAMED_IAM"]'
103103
```
104-
105-
106-
## ドメインの割当
107-
108-
APIをデプロイ後にdns-templateのスタックをデプロイすることでドメインが割り当てられます
109-
110-
```
111-
aws cloudformation deploy --stack-name <スタック名> --template /path/to/dns-template.yml --capabilities '["CAPABILITY_AUTO_EXPAND"]' --parameter-overrides AlisAppId=$ALIS_APP_ID Doamin=<ネイキッドドメイン> SubDomain=<サブドメイン> HostedZoneId=<Route53のゾーンID> RestApiId=<割り当てたいAPIのID> CertificateArn=<ACMで発行した証明書のARN>
112-
```

dns-template.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

serverless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
service: oauth
1+
service: ${env:ALIS_APP_ID}
22

33
provider:
44
name: aws
55
region: ${env:AWS_DEFAULT_REGION}
66
runtime: python3.7
7-
stage: ${env:ALIS_APP_ID}
7+
stage: oauth2
88
endpointType: regional
99
memorySize: 256
1010
environment:

tests/integration/common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
def get_endpoint_url(stage, region):
1313
cloudformation = boto3.client('cloudformation', region_name=region)
14-
f = open(os.path.dirname(__file__)+'/../../serverless.yml', 'r+')
15-
data = yaml.load(f)
16-
stackname = data['service'] + '-' + stage
14+
stackname = os.environ['ALIS_APP_ID'] + '-' + stage
1715
response = cloudformation.describe_stacks(
1816
StackName=stackname
1917
)

0 commit comments

Comments
 (0)