Skip to content

Commit

Permalink
fix(aws-cdk): update F# template to latest CDK version (#2006)
Browse files Browse the repository at this point in the history
Changed the FSharp code to be compatable with the latest changes in the aws-cdk.
Added code files to fsproj.
  • Loading branch information
costleya authored and rix0rrr committed Mar 13, 2019
1 parent e1a1a7b commit bda12f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="HelloConstruct.fs" />
<Compile Include="HelloStack.fs" />
<Compile Include="Program.fs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Amazon.CDK" Version="%cdk-version%" />
<PackageReference Include="Amazon.CDK.AWS.IAM" Version="%cdk-version%" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ type MyStack(scope, name, props) as this =
let user = User(this, "MyUser", UserProps())

do
topic.SubscribeQueue(queue) |> ignore
topic.SubscribeQueue(queue, Nullable false) |> ignore
hello.GrantRead(user)
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ open HelloCdk

[<EntryPoint>]
let main _ =
let app = App()
let app = App(null)
MyStack(app, "hello-cdk-1", StackProps()) |> ignore
MyStack(app, "hello-cdk-2", StackProps()) |> ignore
app.Run()
app.Run() |> ignore
0

0 comments on commit bda12f2

Please sign in to comment.