Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #49 from aws-solutions/develop
Browse files Browse the repository at this point in the history
Update to version v1.6.1
  • Loading branch information
aassadza authored Dec 20, 2021
2 parents c0b425c + 69dac6f commit bc0fb28
Show file tree
Hide file tree
Showing 45 changed files with 49,742 additions and 15,314 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.6.1] - 2021-10-30
### Added
- Support for Japanese language

### Updated
- Outdated dependencies with regards to `npm audit` and Dependabot

## [1.6.0] - 2021-4-8

### Updated
Expand Down
2 changes: 1 addition & 1 deletion deployment/build-s3-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
set -e

# Important: CDK global version number
cdk_version=1.96.0
cdk_version=1.126.0

# Check to see if input has been provided:
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
Expand Down
4 changes: 2 additions & 2 deletions source/infrastructure/lib/cognito-api-lambdas-construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ export class CognitoApiLambda extends Construct {
effect: Effect.ALLOW,
actions: ['execute-api:Invoke'],
resources: [
`arn:aws:execute-api:${Aws.REGION}:${Aws.ACCOUNT_ID}:${botApi.apiGateway.restApiId}/${botApi.apiGateway.deploymentStage.stageName}/core`,
`arn:aws:execute-api:${Aws.REGION}:${Aws.ACCOUNT_ID}:${botApi.apiGateway.restApiId}/${botApi.apiGateway.deploymentStage.stageName}/services/polly`,
`arn:${Aws.PARTITION}:execute-api:${Aws.REGION}:${Aws.ACCOUNT_ID}:${botApi.apiGateway.restApiId}/${botApi.apiGateway.deploymentStage.stageName}/core`,
`arn:${Aws.PARTITION}:execute-api:${Aws.REGION}:${Aws.ACCOUNT_ID}:${botApi.apiGateway.restApiId}/${botApi.apiGateway.deploymentStage.stageName}/services/polly`,
],
}),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export class ServerlessBotFrameworkStack extends Stack {
'French',
'Italian',
'German',
'Japanese',
],
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class WeatherForecastToSSM extends Construct {
effect: Effect.ALLOW,
actions: ['ssm:GetParameter'],
resources: [
`arn:aws:ssm:${Aws.REGION}:${Aws.ACCOUNT_ID}:parameter/${Aws.STACK_NAME}-weather-api-key`,
`arn:${Aws.PARTITION}:ssm:${Aws.REGION}:${Aws.ACCOUNT_ID}:parameter/${Aws.STACK_NAME}-weather-api-key`,
],
}),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ export class WebClientCustomResource extends Construct {
new PolicyStatement({
effect: Effect.ALLOW,
actions: ['s3:ListBucket', 's3:GetBucketLocation'],
resources: [`arn:aws:s3:::${props.sampleWebClientBucketName}`],
resources: [`arn:${Aws.PARTITION}:s3:::${props.sampleWebClientBucketName}`],
}),
new PolicyStatement({
effect: Effect.ALLOW,
actions: ['s3:GetObject', 's3:PutObject', 's3:DeleteObject'],
resources: [`arn:aws:s3:::${props.sampleWebClientBucketName}/*`],
resources: [`arn:${Aws.PARTITION}:s3:::${props.sampleWebClientBucketName}/*`],
}),
/** BotApi permissions */
new PolicyStatement({
effect: Effect.ALLOW,
actions: ['apigateway:POST'],
resources: [
`arn:aws:apigateway:${Aws.REGION}::/restapis/${props.botApiId}/deployments`,
`arn:${Aws.PARTITION}:apigateway:${Aws.REGION}::/restapis/${props.botApiId}/deployments`,
],
}),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class WriteApiKeyCustomResource extends Construct {
effect: Effect.ALLOW,
actions: ['ssm:PutParameter', 'ssm:DeleteParameter'],
resources: [
`arn:aws:ssm:${Aws.REGION}:${Aws.ACCOUNT_ID}:parameter/${Aws.STACK_NAME}-weather-api-key`,
`arn:${Aws.PARTITION}:ssm:${Aws.REGION}:${Aws.ACCOUNT_ID}:parameter/${Aws.STACK_NAME}-weather-api-key`,
],
}),
],
Expand Down
Loading

0 comments on commit bc0fb28

Please sign in to comment.