diff --git a/src/adapters/ingresses/apig.rs b/src/adapters/ingresses/apig.rs index db2bbcc..754289c 100644 --- a/src/adapters/ingresses/apig.rs +++ b/src/adapters/ingresses/apig.rs @@ -178,14 +178,14 @@ async fn read_file(artifact_path: PathBuf) -> Result> { impl Ingress for AwsApiGateway { async fn deploy(&mut self) -> Result<()> { // First, we need to deploy the new version of the lambda - let lambda_version = self.upload_lambda("releases").await?; + let lambda_version = self.upload_lambda(&self.lambda_name).await?; // Next, we need to create a new deployment, pointing at our // new lambda version with canary settings self.create_apig_deployment( - "Releases", - "prod", - "releases", + &self.gateway_name, + &self.stage_name, + &self.lambda_name, &lambda_version, WholePercent::try_new(0).into_diagnostic()?, ) @@ -195,7 +195,7 @@ impl Ingress for AwsApiGateway { } async fn set_canary_traffic(&mut self, percent: WholePercent) -> Result<()> { - self.update_canary_traffic("Releases", "prod", percent) + self.update_canary_traffic(&self.gateway_name, &self.stage_name, percent) .await?; Ok(())