Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot SSM decrypt #1

Closed
sioncojp opened this issue Jan 11, 2018 · 0 comments · Fixed by #2
Closed

cannot SSM decrypt #1

sioncojp opened this issue Jan 11, 2018 · 0 comments · Fixed by #2

Comments

@sioncojp
Copy link
Collaborator

sioncojp commented Jan 11, 2018

package main

import (
	"fmt"

	"github.com/suzuken/yamlssm"
)

type Config struct {
	Foo string `yaml:"foo"`
	Bar string `yaml:"bar"`
}

func main() {
	b := []byte(`
development:
  foo: ssm://encrypt_parameter
  bar: test
`)

	var configs map[string]Config
	yamlssm.Unmarshal(b, &configs)

	fmt.Printf("%v\n", configs["development"])
}
// $ go run *.go
// {ssm://encrypt_parameter test}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant