crooked-pillow-11944
10/04/2021, 12:06 AMgithub = pulumi.StackReference(f"github-{environment}")
github_token = secrets.github("token")
os.environ['GITHUB_TOKEN'] = github_token
Is there any way to force the output to resolve before a github resource is requested?billowy-army-68599
10/04/2021, 12:10 AMos.environ
inside an .apply
but there's no guarantee the token will be set before the resources are createdcrooked-pillow-11944
10/04/2021, 12:20 AMprovider = github.NewProvider(...)
or something else?mygithubprovider = github.Provider(...)
webhook = 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
10/04/2021, 12:42 AMopts=pulumi.ResourceOptions(provider=mygithubprovider))
shouldwork