Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

【AWS Tools for Powershell】Data Pipelineの名前からパイプラインIDを取得する

動機

パイプラインIDはパイプラインを再作成(削除して作成)すると変わるので、パイプライン名から動的に取得したい。

コード

[String[]] $pipelineIds = Get-DPPipeline -ProfileName $profile | Where-Object -EQ name $pipelineName | Select-Object -ExpandProperty Id