Skip to content

Commit

Permalink
example: sync
Browse files Browse the repository at this point in the history
  • Loading branch information
fwang committed Oct 31, 2024
1 parent c53c3dd commit 67e0429
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/internal/playground/sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export default $config({
return ret;

function addVpc() {
return new sst.aws.Vpc("MyVpc");
const vpc = new sst.aws.Vpc("MyVpc");
return vpc;
}

function addBucket() {
Expand Down Expand Up @@ -171,11 +172,7 @@ export default $config({

function addTopic() {
const topic = new sst.aws.SnsTopic("MyTopic");
topic.subscribe("MyTopicSubscriber", "functions/topic/index.subscriber", {
filter: {
color: ["red"],
},
});
topic.subscribe("MyTopicSubscriber", "functions/topic/index.subscriber");

new sst.aws.Function("MyTopicPublisher", {
handler: "functions/topic/index.publisher",
Expand Down

0 comments on commit 67e0429

Please sign in to comment.