(self, scope: Construct, id: str)
| 51 | # separate stack that includes the traffic generator |
| 52 | class TrafficGeneratorStack(WaltersCoStack): |
| 53 | def __init__(self, scope: Construct, id: str): |
| 54 | super().__init__(scope, id) |
| 55 | |
| 56 | # define a traffic generator instance that hits the URL at 5 TPS |
| 57 | # and hosted within the shared waltersco VPC |
| 58 | GenGen(self, 'generator', |
| 59 | url='https://yourdomain.com/eb4628b6', |
| 60 | tps=5, |
| 61 | vpc=self.waltersco_vpc) |
| 62 | |
| 63 | |
| 64 | app = App() |