Skip to content

Commit

Permalink
fix: update deployment instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Apr 12, 2024
1 parent 3aad1d0 commit abd704e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Store the `mapRegion` output in the parameter registry.
Display the API key using

```bash
aws location describe-key --key-name apiKey | jq '.Key'
aws location describe-key --key-name ${MAP_STACK_NAME:-hello-nrfcloud-map}-apiKey | jq '.Key'
```

Store the API key in the parameter registry as `mapApiKey`.
2 changes: 1 addition & 1 deletion cdk/MapResources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class MapResources extends Construct {
})

this.apiKey = new Location.CfnAPIKey(this, 'apiKey', {
keyName: 'apiKey',
keyName: `${parent.stackName}-apiKey`,
noExpiry: true,
restrictions: {
allowActions: ['geo:GetMap*'],
Expand Down

0 comments on commit abd704e

Please sign in to comment.