Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alinadima committed May 11, 2023
1 parent 48c1ca3 commit eeb990d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ The `cdk.json` file tells the CDK Toolkit how to execute your app.
* `npm install` install dependencies as node modules
* `npm run build` compile typescript to js
* `npm run watch` watch for changes and compile
* `npm run test` perform the jest unit tests
* `cdk deploy` deploy this stack to your default AWS account/region
* `cdk diff` compare deployed stack with current state
* `cdk synth` emits the synthesized CloudFormation template
Expand Down
8 changes: 7 additions & 1 deletion lib/cdk_io_t-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ export class CdkIoTStack extends cdk.Stack {
"iot:Connect"
],
"Resource": [
`arn:aws:iot:${cdk.Aws.REGION}:${cdk.Aws.ACCOUNT_ID}:client/\${iot:ClientId}`
`arn:aws:iot:${cdk.Aws.REGION}:${cdk.Aws.ACCOUNT_ID}:client/\${iot:Connection.Thing.ThingName}`
]
,
"Condition": {
"Bool": {
"iot:Connection.Thing.IsAttached": "true"
}
}
},
{
"Effect": "Allow",
Expand Down
1 change: 0 additions & 1 deletion test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.1.0",
"dependencies": {
"@aws-sdk/client-iot": "^3.327.0",
"fs": "^0.0.1-security",
"mqtt": "^4.3.7"
},
"type": "module"
Expand Down

0 comments on commit eeb990d

Please sign in to comment.