lib/idlc-sdk-deploy/config.rb in idlc-sdk-deploy-1.0.0.rc15 vs lib/idlc-sdk-deploy/config.rb in idlc-sdk-deploy-1.0.1
- old
+ new
@@ -28,11 +28,20 @@
request = {
service: 'deploy',
method: 'GET',
path: "/metadata/#{env_key}",
}
+ metadata = client.fetch(request.to_json)['deployments'].first
- client.fetch(request.to_json)['deployments'].first
+ request = {
+ service: 'config',
+ method: 'GET',
+ path: "/account/#{metadata['environment']['account_alias']}",
+ }
+ account = client.fetch(request.to_json)
+
+ metadata['account'] = account
+ metadata
end
end
def initialize(region)
@region = region