Closed lukehoban closed 7 years ago
Thanks. I was able to repro this locally, so will start debugging now.
It looks like some map replacements aren't getting resolved for some reason.
For example, I ran with --logtostderr -v=9
, and you can see some computed<string>
s deep inside of the body
and paths
properties. Obviously not correct!
I0615 12:30:13.388876 87655 provider_plugin.go:127] resource[aws].Create(t=aws:apigateway/restAPI:RestAPI,#props=15) executing
I0615 12:30:13.388882 87655 rpc.go:47] Marshaling property for RPC: .ctor={<nil>}
I0615 12:30:13.388934 87655 rpc.go:47] Marshaling property for RPC: apiName={<nil>}
I0615 12:30:13.388938 87655 rpc.go:47] Marshaling property for RPC: body={map[swagger:{2.0} info:{map[title:{myrestapi} version:{1.0}]} paths:{map[/bambam:{map[x-amazon-apigateway-any-method:{map[x-amazon-apigateway-integration:{map[httpMethod:{POST} type:{aws_proxy} uri:computed<string>{} passthroughBehavior:{when_no_match}]}]}]}]}]}
I0615 12:30:13.388955 87655 rpc.go:47] Marshaling property for RPC: info={map[title:{myrestapi} version:{1.0}]}
I0615 12:30:13.388960 87655 rpc.go:47] Marshaling property for RPC: title={myrestapi}
I0615 12:30:13.388963 87655 rpc.go:47] Marshaling property for RPC: version={1.0}
I0615 12:30:13.388966 87655 rpc.go:47] Marshaling property for RPC: paths={map[/bambam:{map[x-amazon-apigateway-any-method:{map[x-amazon-apigateway-integration:{map[passthroughBehavior:{when_no_match} httpMethod:{POST} type:{aws_proxy} uri:computed<string>{}]}]}]}]}
I0615 12:30:13.388975 87655 rpc.go:47] Marshaling property for RPC: /bambam={map[x-amazon-apigateway-any-method:{map[x-amazon-apigateway-integration:{map[uri:computed<string>{} passthroughBehavior:{when_no_match} httpMethod:{POST} type:{aws_proxy}]}]}]}
I0615 12:30:13.389022 87655 rpc.go:47] Marshaling property for RPC: x-amazon-apigateway-any-method={map[x-amazon-apigateway-integration:{map[type:{aws_proxy} uri:computed<string>{} passthroughBehavior:{when_no_match} httpMethod:{POST}]}]}
I0615 12:30:13.389041 87655 rpc.go:47] Marshaling property for RPC: x-amazon-apigateway-integration={map[uri:computed<string>{} passthroughBehavior:{when_no_match} httpMethod:{POST} type:{aws_proxy}]}
I0615 12:30:13.389048 87655 rpc.go:47] Marshaling property for RPC: httpMethod={POST}
I0615 12:30:13.389052 87655 rpc.go:47] Marshaling property for RPC: passthroughBehavior={when_no_match}
I0615 12:30:13.389055 87655 rpc.go:47] Marshaling property for RPC: type={aws_proxy}
I0615 12:30:13.389057 87655 rpc.go:47] Marshaling property for RPC: uri=computed<string>{}
I0615 12:30:13.389075 87655 rpc.go:47] Marshaling property for RPC: swagger={2.0}
I0615 12:30:13.389080 87655 rpc.go:47] Marshaling property for RPC: bodyS3Location={<nil>}
I0615 12:30:13.389088 87655 rpc.go:47] Marshaling property for RPC: cloneFrom={<nil>}
I0615 12:30:13.389091 87655 rpc.go:47] Marshaling property for RPC: description={<nil>}
I0615 12:30:13.389093 87655 rpc.go:47] Marshaling property for RPC: failOnWarnings={<nil>}
I0615 12:30:13.389096 87655 rpc.go:47] Marshaling property for RPC: name={myrestapi}
I0615 12:30:13.389099 87655 rpc.go:47] Marshaling property for RPC: parameters={<nil>}
fatal: An assertion has failed: Unexpected unknown properties during final marshaling
There are cases where
computed<string>
values are still making it through to the inputs to a create operation.Below is an example that triggers this, I will look into narrowing this repro case down.
On
lumi deploy
, the above leads to: