clever-forest-58332
08/30/2023, 3:42 PMaws sts get-caller-identity
return proper output
But command pulumi up -y
Error raised:
error: Program failed with an unhandled exception:
Traceback (most recent call last):
File "/Users/dmitry.oguz/github/sensor_cluster/local_node/__main__.py", line 161, in <module>
run(hash_f, *instance_templates, **cluster_setup)
File "/Users/dmitry.oguz/github/sensor_cluster/local_node/__main__.py", line 109, in run
vpc = aws.ec2.get_vpc(default=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dmitry.oguz/github/sensor_cluster/local_node/venv/lib/python3.11/site-packages/pulumi_aws/ec2/get_vpc.py", line 263, in get_vpc
__ret__ = pulumi.runtime.invoke('aws:ec2/getVpc:getVpc', __args__, opts=opts, typ=GetVpcResult).value
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dmitry.oguz/github/sensor_cluster/local_node/venv/lib/python3.11/site-packages/pulumi/runtime/invoke.py", line 147, in invoke
raise invoke_error
Exception: invoke of aws:ec2/getVpc:getVpc failed: invocation of aws:ec2/getVpc:getVpc returned an error: 1 error occurred:
* configuring Terraform AWS Provider: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: 85e5fe25-228b-4947-84bb-6bf9a29c5951, api error ExpiredToken: The security token included in the request is expired
same when I tried aws.ec2.get_vpc(id=vpc_id)
Appreciate any help!!!