sparse-intern-71089
10/04/2021, 12:06 AMbillowy-army-68599
billowy-army-68599
os.environ
inside an .apply
but there's no guarantee the token will be set before the resources are createdbillowy-army-68599
crooked-pillow-11944
10/04/2021, 12:20 AMprovider = github.NewProvider(...)
or something else?crooked-pillow-11944
10/04/2021, 12:25 AMmygithubprovider = github.Provider(...)
crooked-pillow-11944
10/04/2021, 12:25 AMcrooked-pillow-11944
10/04/2021, 12:41 AMwebhook = github.RepositoryWebhook(f"bootstrap-webhook-{environment}",
repository='pulumi-bootstrap',
configuration=github.RepositoryWebhookConfigurationArgs(
url=apigw.api_endpoint,
content_type="json",
insecure_ssl=False,
),
active=True,
events=["pull_request"],
__opts__=pulumi.ResourceOptions(provider=mygithubprovider))
I'm getting an error when running my stack:
_internal_init() got an unexpected keyword argument '__opts__'
billowy-army-68599
opts=pulumi.ResourceOptions(provider=mygithubprovider))
shouldworkbillowy-army-68599