Skip to content

Commit

Permalink
Merge pull request #44 from ASFHyP3/develop
Browse files Browse the repository at this point in the history
Release 0.0.3
  • Loading branch information
AndrewPlayer3 authored Jul 19, 2024
2 parents 422e465 + 20590cd commit 2ecb03a
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ on:
- main

env:
STACK_NAME: asj-sentinel1-orbits
STACK_NAME: asf-sentinel1-orbits
TEMPLATE_BUCKET: cf-templates-1hz9ldhhl4ahu-us-west-2
CLOUDFORMATION_ROLE_ARN: ${{ secrets.CLOUDFORMATION_ROLE_ARN }}
BUCKET_NAME: asj-sentinel1-orbits
CERTIFICATE_ARN: ${{ secrets.CERTIFICATE_ARN }}
DOMAIN_NAME: s1-orbits.asf.alaska.edu
CDSE_USERNAME: ${{ secrets.CDSE_USERNAME }}
CDSE_PASSWORD: ${{ secrets.CDSE_PASSWORD }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
with:
release_prefix: Sentinel-1 Orbits
secrets:
USER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }}
2 changes: 1 addition & 1 deletion .github/workflows/tag-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
call-bump-version-workflow:
uses: ASFHyP3/actions/.github/workflows/[email protected]
secrets:
USER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }}
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.3]

### Added
* Support for the API to utilize a custom domain.

## [0.0.2]

## Added
### Added
* Initial .gitignore file

## [0.0.1]
Expand Down
21 changes: 21 additions & 0 deletions apps/api/cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Parameters:
BucketName:
Type: String

DomainName:
Type: String

CertificateArn:
Type: String

Resources:

Api:
Expand Down Expand Up @@ -72,6 +78,21 @@ Resources:
LogGroupName: !Sub "/aws/lambda/${Lambda}"
RetentionInDays: 90

CustomDomainName:
Type: AWS::ApiGatewayV2::DomainName
Properties:
DomainName: !Ref DomainName
DomainNameConfigurations:
- CertificateArn: !Ref CertificateArn
EndpointType: REGIONAL

ApiMapping:
Type: AWS::ApiGatewayV2::ApiMapping
Properties:
ApiId: !Ref Api
DomainName: !Ref CustomDomainName
Stage: $default

LambdaRole:
Type: AWS::IAM::Role
Properties:
Expand Down
8 changes: 8 additions & 0 deletions cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Parameters:
BucketName:
Type: String

CertificateArn:
Type: String

DomainName:
Type: String

CdseUsername:
Type: String
NoEcho: true
Expand All @@ -18,6 +24,8 @@ Resources:
Properties:
Parameters:
BucketName: !Ref BucketName
CertificateArn: !Ref CertificateArn
DomainName: !Ref DomainName
TemplateURL: apps/api/cloudformation.yml

Fetcher:
Expand Down

0 comments on commit 2ecb03a

Please sign in to comment.