Delete Autoscaling Resources
The autoscaling resources, Functions, Event Rule, and Notification Subscriptions are created using Oracle Cloud Infrastructure SDK APIs from WebLogic Administration instance during provisioning. So, you must destroy these autoscaling resources before destroying the stack.
Run the command in Cloud Shell to destroy autoscaling resources using
remove_resources.py
script. To create
remove_resources.py
, see Script File to Delete Resources.
Note:
A user who is not an administrator can also run thepre-destroy
command.
python3 remove_resources.py pre-destroy <service_name_prefix> -f autoscaling
If you run this script from a nonhome region, use the following command:
python3 remove_resources.py pre-destroy <service_name_prefix> -f autoscaling -r <region_name>
Example:
python3 remove_resources.py pre-destroy abcstack -f autoscaling -r us-phoenix-1