@@ -305,6 +305,7 @@ jobs:
305
305
aws s3 cp "./terraform.tfstate" "${S3_BUCKET}/terraform.tfstate"
306
306
aws s3 cp "${EC2_CSPM_KEY}" "${S3_BUCKET}/cspm.pem"
307
307
aws s3 cp "${EC2_KSPM_KEY}" "${S3_BUCKET}/kspm.pem"
308
+ aws s3 cp "${EC2_ASSET_INV_KEY}" "${S3_BUCKET}/asset_inv.pem"
308
309
echo "s3-bucket-folder=${S3_BUCKET}" >> $GITHUB_OUTPUT
309
310
echo "aws-cnvm-stack=${CNVM_STACK_NAME}" >> $GITHUB_OUTPUT
310
311
python3 ../../.ci/scripts/create_env_config.py
@@ -473,17 +474,31 @@ jobs:
473
474
cmd="chmod +x $scriptname && ./$scriptname"
474
475
../../.ci/scripts/remote_setup.sh -k "$EC2_CSPM_KEY" -s "$src" -h "$CSPM_PUBLIC_IP" -d "~/$scriptname" -c "$cmd"
475
476
477
+ - name : Install AWS Asset Inventory integration
478
+ id : aws-asset-inventory
479
+ working-directory : ${{ env.INTEGRATIONS_SETUP_DIR }}
480
+ run : |
481
+ poetry run python ./install_aws_asset_inventory_integration.py
482
+
483
+ - name : Deploy AWS Asset Inventory agent
484
+ run : |
485
+ scriptname="aws-asset-inventory-linux.sh"
486
+ src="../../$INTEGRATIONS_SETUP_DIR/$scriptname"
487
+ cmd="chmod +x $scriptname && ./$scriptname"
488
+ ../../.ci/scripts/remote_setup.sh -k "$EC2_ASSET_INV_KEY" -s "$src" -h "$ASSET_INV_PUBLIC_IP" -d "~/$scriptname" -c "$cmd"
489
+
476
490
- name : Upload Integrations data
477
491
if : always()
478
492
env :
479
493
S3_BUCKET : " ${{ env.S3_BASE_BUCKET }}/${{ env.DEPLOYMENT_NAME }}_${{ env.TF_STATE_FOLDER }}"
480
494
working-directory : ${{ env.INTEGRATIONS_SETUP_DIR }}
481
495
run : |
482
- aws s3 cp "./kspm_unmanaged.yaml" "${{ env.S3_BUCKET }}/kspm_unmanaged.yaml"
483
- aws s3 cp "./kspm_d4c.yaml" "${{ env.S3_BUCKET }}/kspm_d4c.yaml"
484
- aws s3 cp "./kspm_eks.yaml" "${{ env.S3_BUCKET }}/kspm_eks.yaml"
485
- aws s3 cp "./cspm-linux.sh" "${{ env.S3_BUCKET }}/cspm-linux.sh"
486
- aws s3 cp "./state_data.json" "${{ env.S3_BUCKET }}/state_data.json"
496
+ aws s3 cp "./kspm_unmanaged.yaml" "$S3_BUCKET/kspm_unmanaged.yaml"
497
+ aws s3 cp "./kspm_d4c.yaml" "$S3_BUCKET/kspm_d4c.yaml"
498
+ aws s3 cp "./kspm_eks.yaml" "$S3_BUCKET/kspm_eks.yaml"
499
+ aws s3 cp "./cspm-linux.sh" "$S3_BUCKET/cspm-linux.sh"
500
+ aws s3 cp "./aws-asset-inventory-linux.sh" "$S3_BUCKET/aws-asset-inventory-linux.sh"
501
+ aws s3 cp "./state_data.json" "$S3_BUCKET/state_data.json"
487
502
488
503
- name : Install Agentless integrations
489
504
id : agentless
0 commit comments