Skip to content

Commit

Permalink
add us-west-2 region
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleith committed Sep 20, 2018
1 parent 60cefec commit 5fddcee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
data
notebooks/.ipynb_checkpoints/
.ipynb_checkpoints/
notebooks/.datacube.conf
notebooks/.local/
notebooks/.cache/
Expand Down
13 changes: 12 additions & 1 deletion opendatacube-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,25 @@ Parameters:
Default: 0.0.0.0/0
AllowedPattern: (\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/(\d{1,2})
ConstraintDescription: must be a valid IP CIDR range of the form x.x.x.x/x.
Region:
Description: The AWS region to deploy in
Type: String
Default: us-west-2
AllowedValues: [us-west-2, ap-southeast-2]
Mappings:
RegionMap:
us-west-2:
"HVM64": "ami-0e32ec5bc225539f5"
ap-southeast-2:
"HVM64": "ami-0789a5fb42dcccc10"
Resources:
EC2Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType: !Ref 'InstanceType'
SecurityGroups: [!Ref 'InstanceSecurityGroup']
KeyName: !Ref 'KeyName'
ImageId: 'ami-d38a4ab1'
ImageId: !FindInMap [RegionMap, !Ref "AWS::Region", HVM64]
IamInstanceProfile: !Ref ODCInstanceProfile
UserData:
Fn::Base64: !Sub |
Expand Down

0 comments on commit 5fddcee

Please sign in to comment.