big-potato-91793
02/16/2021, 7:28 PMerror: 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. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
Getting this error?
But we are passing the aws:profile
to a good value. What should cause this?aws:region
was also set.little-cartoon-10569
02/16/2021, 8:33 PMbrave-planet-10645
02/16/2021, 8:50 PMbillowy-army-68599
02/16/2021, 8:53 PMaws sts get-caller-identity
from the same machine work?
- how is your aws profile configured?big-potato-91793
02/16/2021, 8:59 PMeu-central-1
region but using my runner that live in us-east-1
. I create my own provider to set the region correctly.white-balloon-205
02/16/2021, 9:12 PMaws
provider release.big-potato-91793
02/16/2021, 9:26 PMpulumi-aws
billowy-army-68599
02/16/2021, 9:35 PMaws sts get-caller-identity
?big-potato-91793
02/16/2021, 9:36 PM3.23
of aws provider of pulumi
I try with 3.29
and I got the problem.broad-dog-22463
02/16/2021, 10:44 PMbig-potato-91793
02/16/2021, 10:57 PM3.29.1
version.broad-dog-22463
02/17/2021, 1:55 PMbig-potato-91793
02/17/2021, 1:56 PMUpdating (nonprod):
[resource plugin aws-3.23.0] installing
Downloading plugin: 73.74 MiB / 73.74 MiB 100.00% 1s
pulumi:pulumi:Stack gateway-cert-nonprod running
~ pulumi:providers:aws aws-eu-central-1 updating [diff: +skipCredentialsValidation,skipGetEc2Platforms,skipMetadataApiCheck,skipRegionValidation~version]
~ pulumi:providers:aws aws-eu-central-1 updated [diff: +skipCredentialsValidation,skipGetEc2Platforms,skipMetadataApiCheck,skipRegionValidation~version]
aws:acm:Certificate cert-eu-central-1-intqa error: 1 error occurred:
pulumi:pulumi:Stack gateway-cert-nonprod
aws:acm:Certificate cert-eu-central-1-intqa **failed** 1 error
Diagnostics:
aws:acm:Certificate (cert-eu-central-1-intqa):
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. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
broad-dog-22463
02/17/2021, 1:56 PMbig-potato-91793
02/17/2021, 1:57 PM$ npm ci
> protobufjs@6.10.2 postinstall /builds/tm1/gateway-cert/pulumi/node_modules/protobufjs
> node scripts/postinstall
> @pulumi/aws@v3.29.1 install /builds/tm1/gateway-cert/pulumi/node_modules/@pulumi/aws
> node scripts/install-pulumi-plugin.js resource aws v3.29.1
[resource plugin aws-3.29.1] installing
Downloading plugin: 74.68 MiB / 74.68 MiB 100.00% 1s
added 281 packages in 6.276s
broad-dog-22463
02/17/2021, 1:58 PMbig-potato-91793
02/17/2021, 1:59 PM},
"@pulumi/aws": {
"version": "3.29.1",
"resolved": "<https://registry.npmjs.org/@pulumi/aws/-/aws-3.29.1.tgz>",
"integrity": "sha512-wbxalcwd6Q8WJ72Fr6QEuv0xc2+yghmz+QE0fGI9qA/bScZbsIkSnqnSQrQ4P1j5Q8gh6rJMHUvtjFyHQ1Lh7g==",
"requires": {
"@pulumi/pulumi": "^2.17.0",
"aws-sdk": "^2.0.0",
"builtin-modules": "3.0.0",
"mime": "^2.0.0",
"read-package-tree": "^5.2.1",
"resolve": "^1.7.1"
}
},
broad-dog-22463
02/17/2021, 1:59 PMbig-potato-91793
02/17/2021, 2:00 PMbroad-dog-22463
02/17/2021, 2:01 PMbig-potato-91793
02/17/2021, 2:04 PMus-east-1
. But I created my own aws provider base on the region I need to create some stuffs. Passing the awsRegion in my yaml file. and the aws:profile
export const stack = new Stack({
environments: config.targets,
productCode: config.productCode,
inventoryCode: config.inventoryCode,
}).for(config.regions);
I create my stack in each of those region.broad-dog-22463
02/17/2021, 2:05 PMbig-potato-91793
02/17/2021, 2:05 PMus-west-2
i just need to add the region to my stack yamlthis.provider = new Provider(`aws.${this.region}`, {
profile,
region: this.region,
});
3.23
since looks like the 3.29.1
is creatiing the error 😬broad-dog-22463
02/17/2021, 2:15 PMpulumi plugin rm resource aws 3.29.1
and then ensure you npm install 3.23.0billowy-army-68599
02/17/2021, 2:29 PMbig-potato-91793
02/17/2021, 2:29 PMbillowy-army-68599
02/17/2021, 2:30 PMbig-potato-91793
02/17/2021, 2:30 PMbillowy-army-68599
02/17/2021, 2:32 PMaws:profile
? can you add a gitlab step before the pulumi run that verifies the role you have (eg aws sts get-caller-identity
)big-potato-91793
02/17/2021, 2:58 PMbecause i'm using my profile locally
not the iam. But I can get you the result of the aws sts get-caller-identity
soon. If I puth or not the profile
I’m getting the error in the ci. But I can retry.billowy-army-68599
02/17/2021, 3:27 PMup
works, but the run fails on the gitlab runner? did you configure your profile on the gitlab runner>big-potato-91793
02/17/2021, 3:29 PM3.23
version of the provider.broad-dog-22463
02/17/2021, 3:30 PMpulumi config set aws:skipMetadataApiCheck false
big-potato-91793
02/17/2021, 3:40 PM$ aws sts get-caller-identity
00:01
{
"UserId": "XXXXX-GitRunner",
"Account": "XXXXXXXX",
"Arn": "arn:aws:sts::XXXXXX:assumed-role/GitRunner/XXXXXX-GitRunner"
}
Job succeeded
billowy-army-68599
02/17/2021, 3:42 PMaws:profile
config option. My suspicion is that you're trying to invoke an AWS profile that doesn't exist on your runnerbig-potato-91793
02/17/2021, 3:43 PMbillowy-army-68599
02/17/2021, 3:43 PMAWS_PROFILE
environment variable or setup the profile on your runneraws configure list
Name Value Type Location
---- ----- ---- --------
profile pulumi-dev-sandbox manual --profile
big-potato-91793
02/17/2021, 3:49 PMbroad-dog-22463
02/17/2021, 4:01 PMbig-potato-91793
02/17/2021, 4:02 PMbroad-dog-22463
02/17/2021, 4:02 PMbig-potato-91793
02/17/2021, 4:04 PMbroad-dog-22463
02/17/2021, 4:10 PMbig-potato-91793
02/18/2021, 2:26 PMbroad-dog-22463
02/18/2021, 2:26 PMadamant-translator-31969
02/18/2021, 4:04 PMbroad-dog-22463
02/18/2021, 4:04 PMpulumi config set aws:skipCredentialsValidation false
pulumi config set aws:skipGetEc2Platforms false
pulumi config set aws:skipMetadataApiCheck false
big-potato-91793
02/24/2021, 2:11 PMbroad-dog-22463
02/24/2021, 2:12 PMbig-potato-91793
02/24/2021, 6:42 PMbroad-dog-22463
02/24/2021, 6:49 PMbig-potato-91793
02/24/2021, 8:31 PMbroad-dog-22463
02/24/2021, 8:35 PMbig-potato-91793
02/24/2021, 8:44 PMbroad-dog-22463
02/24/2021, 8:46 PMbig-potato-91793
02/24/2021, 8:49 PMbroad-dog-22463
02/24/2021, 9:53 PMbig-potato-91793
02/25/2021, 11:39 AMbroad-dog-22463
02/25/2021, 1:43 PMbig-potato-91793
02/25/2021, 2:08 PMthis.provider = new Provider(`aws.${this.region}`, {
skipCredentialsValidation: false,
skipMetadataApiCheck: false,
skipGetEc2Platforms: false,
region: this.region,
});
and the version 3.28
of the aws provider.broad-dog-22463
02/25/2021, 2:09 PMbig-potato-91793
02/25/2021, 2:10 PMerror: getting secrets manager: yaml: line 13: could not find expected ':'
Getting that weird error 🤔broad-dog-22463
02/25/2021, 2:24 PMbig-potato-91793
02/25/2021, 2:25 PM3.30.1
broad-dog-22463
02/25/2021, 2:31 PMbig-potato-91793
02/25/2021, 2:37 PMthis.provider = new Provider(`aws.${this.region}`, {
skipCredentialsValidation: false,
skipMetadataApiCheck: false,
skipGetEc2Platforms: false,
region: this.region,
});
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. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
broad-dog-22463
02/25/2021, 2:39 PMbig-potato-91793
02/25/2021, 2:40 PMreturn new aws.acm.Certificate(`cert-${context.region}-${context.environment}`, {
certificateChain: '',
certificateBody: '',
privateKey: '',
tags: context.tags,
}, {
provider: context.provider,
});
broad-dog-22463
02/25/2021, 2:48 PMbig-potato-91793
02/25/2021, 2:49 PMcontext.prvider
is referring to the new Provider that you’re seeing with the 3 skip set to falsebroad-dog-22463
03/10/2021, 6:59 PMbig-potato-91793
03/10/2021, 7:03 PMbroad-dog-22463
03/11/2021, 7:25 PMbig-potato-91793
03/11/2021, 7:29 PMbroad-dog-22463
03/11/2021, 7:31 PMbig-potato-91793
03/12/2021, 2:55 PMup
first on my laptop so the provider has the good params and after I was able to do the preivew.broad-dog-22463
03/12/2021, 5:24 PMbig-potato-91793
03/12/2021, 7:00 PMup
. I was thinking that this will be automatic and not generating the error when upgrading the provider