In the current design, it is not possible to separate your default AWS config from the Xray specific config. This commit allows that. It also moves all the configuration out of the APISegmentSubmitter class into the config file, which allows for setting values to null, and therefore defaulting to the local running instances IAM role permissions. This is needed if you are running an ECS task with an IAM role that controls the Xray access.
In the current design, it is not possible to separate your default AWS config from the Xray specific config. This commit allows that. It also moves all the configuration out of the APISegmentSubmitter class into the config file, which allows for setting values to null, and therefore defaulting to the local running instances IAM role permissions. This is needed if you are running an ECS task with an IAM role that controls the Xray access.