-
-
Notifications
You must be signed in to change notification settings - Fork 9
Get-TemplateValidation fails with no error #68
Comments
Okay, root cause is that I don't have a credentials file and was hoping having one. I have my credentials stored elsewhere. However, the lack of error is frustrating and seems to be caused by this in catch {
return (New-VSError -String "$($Error[0].Exception.Message)")
} If I change this to the following, I get a useful error message. catch {
return (New-VSError -String "$($_.Exception.Message)")
} Can't say why |
Last comment, sorry for extending the thread! Given that this problem is in a generic function, does VaporShell support loading credentials from the environment variables? Will I bump into problems given that everything I do will be under an assumed role? |
@indented-automation heyo! Thanks for opening this up!! It's been designed so far with the Shared Credentials file in mind, but it's using the AWS .NET SDK under the hood for any of the SDK related commands. Thanks for the note about the catch failing with no data, definitely worth flipping if that provides the expected error output 🙂 Regarding the environment variables, that should be doable after a little work. Ultimately, assuming a role should grant you a session token still (at least that's how I'm doing it with When you assume a role, are you using the AWS .NET SDK to do so, whether directly or through one of the AWS modules? If so, are you using the .NET Credential Store to store those session credentials that the SDK uses by default? |
I will be doing so tomorrow. I'm keen to keep it in a vaguely supported
model and the .NET SDK meets our requirements for encryption at rest as
well as exposing them in a nicely supported manner (afaik).
If VaporShell can support that scenario it'll make me really happy. I've
only just started pinning our infra together, but it can be made really
pretty compared to some of the alternatives :)
…On Tue, 25 Feb 2020 at 18:09, Nate Ferrell ***@***.***> wrote:
@indented-automation <https://github.com/indented-automation> heyo!
Thanks for opening this up!! It's been designed so far with the Shared
Credentials file in mind, but it's using the AWS .NET SDK under the hood
for any of the SDK related commands.
Thanks for the note about the catch failing with no data, definitely worth
flipping if that provides the expected error output 🙂
Regarding the environment variables, that should be doable after a little
work. Ultimately, assuming a role should grant you a session token still
(at least that's how I'm doing it with AssumeRoleWithSAML). I'll likely
want to expand the parameters available on the SDK calls to include the
standard credential params.
When you assume a role, are you using the AWS .NET SDK to do so, whether
directly or through one of the AWS modules? If so, are you using the .NET
Credential Store to store those session credentials that the SDK uses by
default?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#68>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADB3UDRKZOPZAHVMRS4YIMDREVNHFANCNFSM4K3ETQQQ>
.
|
@indented-automation - Let me know how this build works for you! |
## 2.11.0 - 2020-03-04 * [Issue #69](#69) + [PR #70](#70) - _Thanks, [@indented-automation](https://github.com/indented-automation)!!!_ * Started `VaporShell.Core` class library to include with the module, first class being `TransformTagAttribute` to cleanly convert `Tags` parameter input to the appropriate format if not already. * Added Pester tests to confirm Tag transforms are working as expected. * [Issue #68](#68) - _Thanks, [@indented-automation](https://github.com/indented-automation) and [@austoonz](https://github.com/austoonz)!!!_ * Surfaced errors better on AWS SDK errors so the actual error is visible. * Added the `FallbackCredentialFactory` to better support running in environments where credentials files are not a practical option. * Miscellaneous * Updated PseudoParameter list to current spec. * Added newer intrinsic functions `Add-FnCidr` and `Add-FnTransform`.
## 2.11.0 - 2020-03-04 * [Issue #69](#69) + [PR #70](#70) - _Thanks, [@indented-automation](https://github.com/indented-automation)!!!_ * Started `VaporShell.Core` class library to include with the module, first class being `TransformTagAttribute` to cleanly convert `Tags` parameter input to the appropriate format if not already. * Added Pester tests to confirm Tag transforms are working as expected. * [Issue #68](#68) - _Thanks, [@indented-automation](https://github.com/indented-automation) and [@austoonz](https://github.com/austoonz)!!!_ * Surfaced errors better on AWS SDK errors so the actual error is visible. * Added the `FallbackCredentialFactory` to better support running in environments where credentials files are not a practical option. * Miscellaneous * Updated PseudoParameter list to current spec. * Added newer intrinsic functions `Add-FnCidr` and `Add-FnTransform`.
Deployed in 2.11.0.x! |
Description
Get-TemplateValidation appears to fail, but does not return an error, script stack trace, or exception stack trace that can be used to fix the problem.
Steps to reproduce
Expected output
An error message describing the problem it has with the template.
Actual output
Environment information
The text was updated successfully, but these errors were encountered: