14 lines
489 B
Python
14 lines
489 B
Python
# Copyright 2016-2018, Pulumi Corporation. All rights reserved.
|
|
|
|
import pulumi
|
|
|
|
# Just test that basic config works.
|
|
config = pulumi.Config('config_basic_py')
|
|
|
|
# This value is plaintext and doesn't require encryption.
|
|
value = config.require('aConfigValue')
|
|
assert value == 'this value is a Pythonic value'
|
|
|
|
# This value is a secret and is encrypted using the passphrase `supersecret`.
|
|
secret = config.require('bEncryptedSecret')
|
|
assert secret == 'this super Pythonic secret is encrypted'
|