Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beta.ordbok.uib.no
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Margunn.Rauset
beta.ordbok.uib.no
Commits
9122b70f
Commit
9122b70f
authored
3 years ago
by
Ole Voldsæter
Browse files
Options
Downloads
Patches
Plain Diff
re meta#334 bruk dev-ordbok-cache
parent
15f9c6df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-1
5 additions, 1 deletion
.gitlab-ci.yml
aws/beta.ordbok.uib.no_stack.yaml
+12
-2
12 additions, 2 deletions
aws/beta.ordbok.uib.no_stack.yaml
with
17 additions
and
3 deletions
.gitlab-ci.yml
+
5
−
1
View file @
9122b70f
...
...
@@ -29,7 +29,7 @@ build-prod:
paths
:
-
dist
deploy
:
deploy
-dev
:
image
:
uibit/awscli:latest
stage
:
deploy
only
:
...
...
@@ -47,6 +47,8 @@ deploy:
"AltDomainName=dev.ordbok.uib.no"
"DomainName=beta.ordbok-dev.aws.uib.no"
"PathRewriteLambdaARN=arn:aws:lambda:us-east-1:${AWS_DEV_ACCOUNT}:function:rewrite_request:2"
"OrdbokCacheOriginDomain=8mwl23g34a.execute-api.eu-west-1.amazonaws.com"
"OrdbokCacheStage=DEV"
--no-fail-on-empty-changeset
--capabilities CAPABILITY_IAM
-
aws s3 rm "s3://${STACK_NAME}.aws.uib.no" --recursive
...
...
@@ -74,6 +76,8 @@ deploy-prod:
--template-file "aws/beta.ordbok.uib.no_stack.yaml"
--parameter-overrides "CertificateArn=${CERT_ARN}"
"PathRewriteLambdaARN=arn:aws:lambda:us-east-1:${AWS_DEV_ACCOUNT}:function:rewrite_request:11"
"OrdbokCacheOriginDomain=n5speug9cl.execute-api.eu-west-1.amazonaws.com"
"OrdbokCacheStage=PROD"
--no-fail-on-empty-changeset
--capabilities CAPABILITY_IAM
-
aws s3 rm "s3://${STACK_NAME}.aws.uib.no" --recursive
...
...
This diff is collapsed.
Click to expand it.
aws/beta.ordbok.uib.no_stack.yaml
+
12
−
2
View file @
9122b70f
...
...
@@ -37,6 +37,16 @@ Parameters:
Type
:
String
Description
:
ARN to lambda function in us-east-1 used to rewrite paths
OrdbokCacheOriginDomain
:
Type
:
String
Description
:
Domain name for ordbok cache
OrdbokCacheStage
:
Type
:
String
AllowedValues
:
-
DEV
-
PROD
###############################################################################
Resources
:
###############################################################################
...
...
@@ -109,8 +119,8 @@ Resources:
S3OriginConfig
:
OriginAccessIdentity
:
!Sub
"
origin-access-identity/cloudfront/${CloudFrontOriginIdentity}"
-
Id
:
OrdbokCache
DomainName
:
"
n5speug9cl.execute-api.eu-west-1.amazonaws.com"
OriginPath
:
"
/PROD
"
DomainName
:
!Ref
OrdbokCacheOriginDomain
OriginPath
:
!Sub
"
/${OrdbokCacheStage}
"
CustomOriginConfig
:
OriginProtocolPolicy
:
https-only
OriginKeepaliveTimeout
:
60
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment