Skip to content

Instantly share code, notes, and snippets.

@ohlol
Created November 7, 2021 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohlol/9eadec2086ba96f155e31f484d61902b to your computer and use it in GitHub Desktop.
Save ohlol/9eadec2086ba96f155e31f484d61902b to your computer and use it in GitHub Desktop.
Run export PATH=$PATH:~/.pulumi/bin
Logging in using access token from PULUMI_ACCESS_TOKEN
Previewing update (main)
View Live: https://app.pulumi.com/[redacted]
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:main::account::pulumi:pulumi:Stack::account-main]
error: Program failed with an unhandled exception:
error: Traceback (most recent call last):
File "/home/ubuntu/.pulumi/bin/pulumi-language-python-exec", line 107, in <module>
loop.run_until_complete(coro)
File "/var/actions-runner/_work/_tool/Python/3.9.8/x64/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/var/actions-runner/_work/hatch-pulumi/hatch-pulumi/__pypackages__/3.9/lib/pulumi/runtime/stack.py", line 110, in run_in_stack
await run_pulumi_func(lambda: Stack(func))
File "/var/actions-runner/_work/hatch-pulumi/hatch-pulumi/__pypackages__/3.9/lib/pulumi/runtime/stack.py", line 43, in run_pulumi_func
func()
File "/var/actions-runner/_work/hatch-pulumi/hatch-pulumi/__pypackages__/3.9/lib/pulumi/runtime/stack.py", line 110, in <lambda>
await run_pulumi_func(lambda: Stack(func))
File "/var/actions-runner/_work/hatch-pulumi/hatch-pulumi/__pypackages__/3.9/lib/pulumi/runtime/stack.py", line 133, in __init__
func()
File "/home/ubuntu/.pulumi/bin/pulumi-language-python-exec", line 106, in <lambda>
coro = pulumi.runtime.run_in_stack(lambda: runpy.run_path(args.PROGRAM, run_name='__main__'))
File "/var/actions-runner/_work/_tool/Python/3.9.8/x64/lib/python3.9/runpy.py", line 285, in run_path
return _run_code(code, mod_globals, init_globals,
File "/var/actions-runner/_work/_tool/Python/3.9.8/x64/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/var/actions-runner/_work/hatch-pulumi/hatch-pulumi/projects/account/./__main__.py", line 13, in <module>
cloudtrail_bucket = provision_cloudtrail(stack_name=stack_name)
File "/var/actions-runner/_work/hatch-pulumi/hatch-pulumi/projects/account/./provision/cloudtrail.py", line 37, in provision_cloudtrail
account_id = get_caller_identity().account_id
File "/var/actions-runner/_work/hatch-pulumi/hatch-pulumi/__pypackages__/3.9/lib/pulumi_aws/get_caller_identity.py", line 103, in get_caller_identity
__ret__ = pulumi.runtime.invoke('aws:index/getCallerIdentity:getCallerIdentity', __args__, opts=opts, typ=GetCallerIdentityResult).value
File "/var/actions-runner/_work/hatch-pulumi/hatch-pulumi/__pypackages__/3.9/lib/pulumi/runtime/invoke.py", line 146, in invoke
raise invoke_error
Exception: invoke of aws:index/getCallerIdentity:getCallerIdentity failed: invocation of aws:index/getCallerIdentity:getCallerIdentity returned an error: 1 error occurred:
* error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
Please see https://registry.terraform.io/providers/hashicorp/aws
for more information about providing credentials.
Error: NoCredentialProviders: no valid providers in chain
caused by: EnvAccessKeyNotFound: failed to find credentials in the environment.
SharedCredsLoad: failed to load profile, .
EC2RoleRequestError: no EC2 instance role found
caused by: RequestCanceled: EC2 IMDS access disabled via AWS_EC2_METADATA_DISABLED env var
Resources:
error: an unhandled error occurred: Program exited with non-zero exit code: 1
1 unchanged
Error: Process completed with exit code 255.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment