https://pulumi.com logo
#typescript
Title
# typescript
b

bland-pharmacist-96854

04/11/2023, 5:22 PM
Hi! Is there something worng if we don't define a variable for each resource? Like this:
Copy code
// Create public route association
new aws.ec2.RouteTableAssociation(data.pubrtasst_name, {
  routeTableId: pubRouteTable.id,
  subnetId: publicSubnet.id,
});
b

billowy-army-68599

04/11/2023, 5:22 PM
nope, that’s absolutely fine. you only need a variable if you want to reference somethinbg